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 taken down. Is there any way of doing it with Upstart? Or... better said, what is the way of doing that through Upstart
.conf files? (I'm sure there's a way, I just don't know it)