/srv/irclogs.ubuntu.com/2009/12/18/#upstart.txt

MarcWeberHow to handle this automount case? If /auto is active and you stop autofs then autofs just prints "Can't shutdown, /auto still active"..02:54
MarcWeberHowever 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
Keybukthere probably is no event for a filesystem being in use or not02:55
MarcWeberKeybuk: Maube automount should umount -l /auto and exit?02:56
MarcWeberI don't know which party to patch.02:56
Keybukfilesystems are hard02:58
Keybukthey're pretty integral to the "upness" of a system02:58
Keybukbringing them up and tearing them down has proven quite the tough cookie02:58
MarcWeberWhat is the default signal being send to the job to make it quit?02:59
KeybukTERM usually ;)02:59
MarcWeberMaybe I should start this on stopping : "set -e; while :; do pkill -TERM automount; sleep 1; done03:04
Keybukor have automount "stop on starting OTHERJOB"03:04
MarcWeberWhat is OTHERJOB?03:05
MarcWeberWhen I say stop that job I want it to stop.03:05
Keybukwhat you were thinking of putting that code into03:06
Keybukie.03:06
Keybukif you have03:06
MarcWeberThe problem is that automount get's the signal but ignores it.03:06
Keybuk/etc/init/umount.conf03:06
Keybuk  exec umount -a03:06
Keybukand you need automount stopped first03:06
Keybukthen03:06
MarcWeberThe script keeps resending the TERM signal. Upstart sends it only once03:06
Keybuk/etc/init/automount.conf03:06
Keybuk  stop on starting umount03:06
Keybuksure03:06
KeybukUpstart sends it once03:06
Keybukwaits for automount to get its act in gear03:06
Keybukif it doesn't follows up with SIGKILL03:07
MarcWeberIF SIGKILL is sent /auto keeps mounted. I guess this is a autostart bug.03:07
MarcWeberIt should umount -l then..03:07
Keybukyes03:07
Keybukautomount shouldn't ignore SIGTERM03:07
Keybukhow do you tell automount to stop normally?03:08
MarcWeberIt doesn't. But it neither unmounts its filesystems.03:08
MarcWeberYou send TERM ?03:08
Keybukyou said it ignored TERM :p03:08
MarcWeberIT does if you cd into the /auto directory..03:08
MarcWeberif you don't it will exit.03:09
Keybukhow does it know?03:09
MarcWeberDon't ask me. Probably it tries umount /auto and notices that that command fails03:10
Keybukoh03:10
Keybukright03:10
Keybukso don't do that then ;)03:10
MarcWeberThat's not an option.03:10
MarcWeberI'm a human. I am allowed to make mistakes causing trouble..03:10
MarcWeber:)03:10
Keybukusually you kill all processes before unmounting anyway03:10
Keybukie. killall5 -TERM; killall5- KILL; umount -a03:10
MarcWeberKeybuk: 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
Keybukpossibly03:11
MarcWeberhehe. How do you run halt then?03:11
Keybukafter the filesystems are unmounted03:11
Keybuk(you remount root read/only rather than unmounting)03:11
MarcWeberThen the command may be gone..03:11
Keybukhalt is on the root03:11
MarcWeberSo you umount everything but root03:12
Keybukyes03:12
MarcWeberHow long will upstart wait until it sends SIGKILL (if there is no on stopping script running?)03:27
ionkeybuk: Gotta beam off some poop. Start running around. http://www.youtube.com/watch?v=l4HMCCspbUE22:40

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!