OpenVZ Forum


Home » General » Support » Watching the shutdown sequence?
Watching the shutdown sequence? [message #23148] Tue, 13 November 2007 15:40 Go to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
Is there any way to watch the shutdown sequence of a VE run? What I'd like to see is the equivalent of running shutdown from the command line and watching all the services going down from the console.

I reciently upgraded to Fedora 8 and the VE shutdown is now a lot slower that it used to be. Trying to figure out why.


Re: Watching the shutdown sequence? [message #23149 is a reply to message #23148] Tue, 13 November 2007 16:06 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

You can do something like the following:

(inside a VE):

mv /sbin/init /sbin/init.real
cat > /sbin/init << EOF
#!/bin/sh
exec /sbin/init.real </dev/null > /tmp/init.log 2>&1
EOF
chmod a+x /sbin/init


Then reboot a VE and watch /tmp/init.log for new messages.

If that works for you could you please document it on wiki?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Watching the shutdown sequence? [message #23152 is a reply to message #23148] Tue, 13 November 2007 16:23 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
I was hoping for something that I could watch live so I can see where the delay is. Any way to do that?


Re: Watching the shutdown sequence? [message #23154 is a reply to message #23152] Tue, 13 November 2007 16:53 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Is running
tail -f /vz/private/NNN/tmp/init.log
from the other console sufficient?

You can even create /tmp/init.log as a named pipe and read from it using tail.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: debian.systs.org is down?
Next Topic: Metadata Creation
Goto Forum:
  


Current Time: Wed Jul 10 13:36:02 GMT 2024

Total time taken to generate the page: 0.02587 seconds