[Nix-dev] Order of the upstart scripts on stop
Marc Weber
marco-oweber at gmx.de
Fri Dec 25 01:03:21 CET 2009
Yous should be able to say:
name = "unmount-job"
start on stopping portmap or stopping otherjob;
start script
umount ..
end script
Also read this wiki page:
http://upstart.ubuntu.com/wiki/ComplexEventConfig?highlight=%28%28CategorySpec%29%29
You also want to read man 5 init.
Eg you can also use dbus or pre-stop scripts to do the unmounts.
I have not much experience with these advanced configurations..
Good luck
Marc Weber
More information about the nix-dev
mailing list