[Bug 350936] Re: Should shut down domains on system shutdown

Clint Byrum clint at fewbar.com
Tue Feb 1 22:35:00 UTC 2011


Wow this one has been around a while.

The simplest way to run a script before stopping, only on shutdown, but not on restarts, is to use the UPSTART_EVENTS.
 environment variable.

pre-stop script
  if [ x$UPSTART_EVENTS = xrunlevel ] ; then
    shutdown_guests
  fi
end script

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to kvm in ubuntu.
https://bugs.launchpad.net/bugs/350936

Title:
  Should shut down domains on system shutdown



More information about the Ubuntu-server-bugs mailing list