[02:54] How to handle this automount case? If /auto is active and you stop autofs then autofs just prints "Can't shutdown, /auto still active".. [02:55] However when you release /auto (by cding away) it still doesn't stop. Either upstart should resend some signals or automount should recall that it should shutdown when /auto can be released.. [02:55] there probably is no event for a filesystem being in use or not [02:56] Keybuk: Maube automount should umount -l /auto and exit? [02:56] I don't know which party to patch. [02:58] filesystems are hard [02:58] they're pretty integral to the "upness" of a system [02:58] bringing them up and tearing them down has proven quite the tough cookie [02:59] What is the default signal being send to the job to make it quit? [02:59] TERM usually ;) [03:04] Maybe I should start this on stopping : "set -e; while :; do pkill -TERM automount; sleep 1; done [03:04] or have automount "stop on starting OTHERJOB" [03:05] What is OTHERJOB? [03:05] When I say stop that job I want it to stop. [03:06] what you were thinking of putting that code into [03:06] ie. [03:06] if you have [03:06] The problem is that automount get's the signal but ignores it. [03:06] /etc/init/umount.conf [03:06] exec umount -a [03:06] and you need automount stopped first [03:06] then [03:06] The script keeps resending the TERM signal. Upstart sends it only once [03:06] /etc/init/automount.conf [03:06] stop on starting umount [03:06] sure [03:06] Upstart sends it once [03:06] waits for automount to get its act in gear [03:07] if it doesn't follows up with SIGKILL [03:07] IF SIGKILL is sent /auto keeps mounted. I guess this is a autostart bug. [03:07] It should umount -l then.. [03:07] yes [03:07] automount shouldn't ignore SIGTERM [03:08] how do you tell automount to stop normally? [03:08] It doesn't. But it neither unmounts its filesystems. [03:08] You send TERM ? [03:08] you said it ignored TERM :p [03:08] IT does if you cd into the /auto directory.. [03:09] if you don't it will exit. [03:09] how does it know? [03:10] Don't ask me. Probably it tries umount /auto and notices that that command fails [03:10] oh [03:10] right [03:10] so don't do that then ;) [03:10] That's not an option. [03:10] I'm a human. I am allowed to make mistakes causing trouble.. [03:10] :) [03:10] usually you kill all processes before unmounting anyway [03:10] ie. killall5 -TERM; killall5- KILL; umount -a [03:11] Keybuk: It's another issue: I'm using NixOS. It restarts the job whenever the configuration changes. So maybe I should write an exception for that job as well .. [03:11] possibly [03:11] hehe. How do you run halt then? [03:11] after the filesystems are unmounted [03:11] (you remount root read/only rather than unmounting) [03:11] Then the command may be gone.. [03:11] halt is on the root [03:12] So you umount everything but root [03:12] yes [03:27] How long will upstart wait until it sends SIGKILL (if there is no on stopping script running?) [22:40] keybuk: Gotta beam off some poop. Start running around. http://www.youtube.com/watch?v=l4HMCCspbUE