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

From: Jacques Gelinas (jack_at_solucorp.qc.ca)
Date: Tue 04 Dec 2001 - 23:08:01 GMT


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
> $NET2MASK \
> 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 <jack_at_solucorp.qc.ca>
vserver: run general purpose virtual servers on one box, full speed!
http://www.solucorp.qc.ca/miscprj/s_context.hc


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 06 Nov 2002 - 07:03:38 GMT by hypermail 2.1.3