1

Upstart: How to run a "stop" before stopping other services?

view story
linux-howto

http://unix.stackexchange.com – I recently found out about the upstart "service starter" that Ubuntu is using and that is (apparently) the future to start/stop jobs in Linux. It's pretty new to me (I was used to the old SysV system of putting scripts in /etc/rc[X].d/) and I don't know if it's possible to stop a service (call the service with the "stop" parameter, although the parameter doesn't seem to matter that much anymore) before other services are stopped. I want to run a small script that informs a remote server that the machine is shutting down. I need to run that script before the dbus and the network services are (HowTos)