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
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to