Outils pour utilisateurs

Outils du site


tof:computer:vserver:upstart_ubuntu_lucid

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Dernière révisionLes deux révisions suivantes
tof:computer:vserver:upstart_ubuntu_lucid [09/06/2010 20:18] – add infos about console and stop Christophe Boyaniquetof:computer:vserver:upstart_ubuntu_lucid [12/07/2010 17:18] Christophe Boyanique
Ligne 2: Ligne 2:
  
 This tweak is inspired by [[http://linux-vserver.org/Upstart_issues]]. This tweak is inspired by [[http://linux-vserver.org/Upstart_issues]].
- 
-Stopping the vserver does not (yet) work correctly: init do not stop services and all processes are killed after a timeout by vserver utils: 
-<code> 
-# vserver <vservername> stop 
-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 <vservername>  ?   Ss   0:00 /sbin/init 
-15835   153 <vservername>  ?   Ss   0:00 dbus-daemon --system --fork 
-15838   153 <vservername>  ?   Sl   0:00 rsyslogd -c4 
-15847   153 <vservername>  ?   Ss   0:00 /usr/sbin/sshd 
-15955   153 <vservername>  ?   Ss   0:00 atd 
--------------------------------------------------------------------- 
-</code> 
- 
-The vserver can be stopped cleanly by going to level 0 in the vserver: 
-<code> 
-vserver <vservername> exec telinit 0 
-</code> 
  
 <code> <code>
Ligne 60: Ligne 39:
 <code> <code>
 # mkdir /etc/vservers/<vservername>/vdir/root/init.disabled  # mkdir /etc/vservers/<vservername>/vdir/root/init.disabled 
-# for srv in console-setup control-alt-delete dmesg failsafe-x hostname hwclock-save hwclock module-init-tools \+# 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 96: Ligne 75:
        initctl emit net-device-up IFACE=lo --no-wait        initctl emit net-device-up IFACE=lo --no-wait
 end script end script
 +</code>
 +
 +
 +===== Tweak sysinit configuration =====
 +
 +In ''/etc/init/rc-sysinit.conf'' replace the following line:
 +
 +<code>
 +start on filesystem and net-device-up IFACE=lo
 +</code>
 +
 +by:
 +
 +<code>
 +start on filesystem
 </code> </code>
  
tof/computer/vserver/upstart_ubuntu_lucid.txt · Dernière modification : 13/07/2010 11:58 de Christophe Boyanique

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki