tof:computer:vserver:upstart_ubuntu_lucid
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
tof:computer:vserver:upstart_ubuntu_lucid [09/06/2010 15:17] – status of stopping vserver Christophe Boyanique | tof:computer:vserver:upstart_ubuntu_lucid [12/07/2010 17:18] – Christophe Boyanique | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
This tweak is inspired by [[http:// | This tweak is inspired by [[http:// | ||
- | Stopping the vserver does not (yet) work correctly: init do not stop services and all processes are killed after a timeout by vserver utils: | ||
< | < | ||
- | # vserver | + | 19:57 <@Bertl> well, regarding console: you probably don't want 'the console' |
- | A timeout occured while waiting for the vserver to finish | + | upstart (from the guest) will write on your host console (and can read stuff from there too) |
- | be killed by sending | + | 19:58 < |
- | might be useful for finding out the reason of this behavior: | + | current tty just tty |
- | + | 19:59 <@Bertl> regarding the stop: your guest seems to ignore the ' | |
- | ---------------------------------------------------------------------- | + | down |
- | 15816 | + | 19:59 <@Bertl> thus, after a given (configureable) timeout, the guest is killed instead |
- | 15835 | + | 20:00 <@Bertl> util-vserver does not execute stuff inside the guest, it simply sends a signal to init (inside the guest) |
- | 15838 | + | 20:01 <@Bertl> (the singnal is SIGINT, and this equals to the CTRL-ALT-DEL action) |
- | 15847 153 < | + | |
- | 15955 | + | |
- | -------------------------------------------------------------------- | + | |
</ | </ | ||
- | |||
- | The vserver can be stopped cleanly by going to level 0 in the vserver: | ||
- | < | ||
- | vserver < | ||
- | </ | ||
- | |||
===== Choose plain init style ===== | ===== Choose plain init style ===== | ||
Ligne 49: | Ligne 39: | ||
< | < | ||
# mkdir / | # mkdir / | ||
- | # for srv in console-setup | + | # for srv in console-setup dmesg failsafe-x hostname hwclock-save hwclock module-init-tools \ |
mountall-net mountall-reboot mountall-shell mountall network-interface network-interface-security networking \ | mountall-net mountall-reboot mountall-shell mountall network-interface network-interface-security networking \ | ||
plymouth-log plymouth-splash plymouth-stop plymouth procps rcS rsyslog-kmsg tty1 tty2 tty3 tty4 tty5 tty6 \ | plymouth-log plymouth-splash plymouth-stop plymouth procps rcS rsyslog-kmsg tty1 tty2 tty3 tty4 tty5 tty6 \ | ||
Ligne 85: | Ligne 75: | ||
| | ||
end script | end script | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Tweak sysinit configuration ===== | ||
+ | |||
+ | In ''/ | ||
+ | |||
+ | < | ||
+ | start on filesystem and net-device-up IFACE=lo | ||
+ | </ | ||
+ | |||
+ | by: | ||
+ | |||
+ | < | ||
+ | start on filesystem | ||
</ | </ | ||
tof/computer/vserver/upstart_ubuntu_lucid.txt · Dernière modification : 13/07/2010 11:58 de Christophe Boyanique