Re: cannot find init process

About this list Date view Thread view Subject view Author view Attachment view

From: Jacques Gelinas (
Date: Tue Dec 04 2001 - 18:08:01 EST

On Tue, 4 Dec 2001 23:27:02 -0500, Christian wrote

> unfortunally the security-context's first process is not 'init' (see
> below)

It should be

> > It does not make the reboot available. A reboot needs to stop everything
> > and start over. The rebootmgr server is still needed to clean up any
> > remaining tasks, including the init itself.
> sure it does:
> from the vserver startup schematic code.. the 'while' needs to be wraped
> in a script, targeting 'init' on PID 1 would be the harder task:
> <SNIP>
> $NICECMD chbind --ip1 $IPROOT --mask1 $IPMASK --net2 $NET2ROOT --mask2
> while {
> chcontext $CAPS $FLAGS $CTXOPT $HOSTOPT $DOMAINOPT --secure \
> save_s_context /var/run/vservers/$1.ctx \
> chroot /vservers/$1 /sbin/init #<<< our
> init
> }; do logger "$1 rebooted"; done
> </SNIP>

All those programs are exec'ing the next one, so this is always the same process
running. So I guess the order is not significant.

> maybe we could use a patched init (exit 0 for reboot (SIGHUP?) / exit 1
> for shutdown (SIGKILL))
> i dont know if the real init returns a exit-code, but even a script which
> behaves mostely like init will suffice

To be tried

> PS: what about with my multi-ip patch ... i would like to hear some
> comments since i won't work further on it unil i know if it's worth it
> (hopefully) ... next step would be to make it possible that vserver
> administrators could build sub-vservers to isolate certain services and
> constrain their own ip ranges

I will check that tonight. Other are welcome to give it a spin as well :-)

Jacques Gelinas <>
vserver: run general purpose virtual servers on one box, full speed!

About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Mon Aug 19 2002 - 12:01:00 EDT