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édente | ||
tof:computer:vserver:upstart_ubuntu_lucid [09/06/2010 20:18] – add infos about console and stop Christophe Boyanique | tof:computer:vserver:upstart_ubuntu_lucid [13/07/2010 11:58] (Version actuelle) – Christophe Boyanique | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
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 < | ||
- | A timeout occured while waiting for the vserver to finish and it will | ||
- | be killed by sending a SIGKILL signal. The following process list | ||
- | might be useful for finding out the reason of this behavior: | ||
- | |||
- | ---------------------------------------------------------------------- | ||
- | 15816 153 < | ||
- | 15835 153 < | ||
- | 15838 153 < | ||
- | 15847 153 < | ||
- | 15955 153 < | ||
- | -------------------------------------------------------------------- | ||
- | </ | ||
- | |||
- | The vserver can be stopped cleanly by going to level 0 in the vserver: | ||
- | < | ||
- | vserver < | ||
- | </ | ||
- | |||
- | < | ||
- | 19:57 < | ||
- | | ||
- | 19:58 < | ||
- | | ||
- | 19:59 < | ||
- | down | ||
- | 19:59 < | ||
- | 20:00 < | ||
- | 20:01 < | ||
- | </ | ||
===== Choose plain init style ===== | ===== Choose plain init style ===== | ||
Ligne 60: | Ligne 27: | ||
< | < | ||
# 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 \ | ||
upstart-udev-bridge ureadahead-other ureadahead; do mv / | upstart-udev-bridge ureadahead-other ureadahead; do mv / | ||
/ | / | ||
+ | </ | ||
+ | |||
+ | Be carefull to keep the '' | ||
+ | |||
+ | < | ||
+ | 20:00 < | ||
+ | 20:01 < | ||
</ | </ | ||
Ligne 96: | Ligne 70: | ||
| | ||
end script | end script | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Tweak sysinit configuration ===== | ||
+ | |||
+ | In ''/ | ||
+ | |||
+ | < | ||
+ | start on filesystem and net-device-up IFACE=lo | ||
+ | </ | ||
+ | |||
+ | by: | ||
+ | |||
+ | < | ||
+ | start on filesystem | ||
</ | </ | ||
Ligne 127: | Ligne 116: | ||
# *.=debug; | # *.=debug; | ||
# *.=notice; | # *.=notice; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Tweak ssh configuration ===== | ||
+ | |||
+ | In ''/ | ||
+ | |||
+ | < | ||
+ | # replaces SSHD_OOM_ADJUST in / | ||
+ | #oom never | ||
</ | </ | ||
===== Create the console device ===== | ===== Create the console device ===== | ||
- | Missing of ''/ | + | Missing of ''/ |
< | < | ||
- | # mknod --mode=600 / | + | 19:57 <@Bertl> well, regarding |
+ | | ||
+ | 19:58 < | ||
+ | | ||
</ | </ | ||
+ | |||
+ | I use '' | ||
+ | |||
+ | < | ||
+ | # mknod --mode=600 / | ||
+ | </ | ||
+ | |||
+ | |||
+ | If you want to troubleshot from outside the vserver you can use for example '' | ||
+ | |||
+ | < | ||
+ | # mknod --mode=600 / | ||
+ | </ | ||
+ | |||
===== Install dbus ===== | ===== Install dbus ===== |
tof/computer/vserver/upstart_ubuntu_lucid.1276107522.txt.gz · Dernière modification : 09/06/2010 20:18 de Christophe Boyanique