[08:56] hi [09:36] how is halt/shutown to be implemented? [14:44] keesj: here's what i do on rc0/shutdown: [14:44] # rc0 - runlevel 0 compatibility [14:44] # [14:44] # This task runs the old sysv-rc runlevel 0 ("halt/poweroff") scripts with [14:44] # the decision as to whether to halt or power off the system left up to the [14:44] # script (and thus /etc/default/poweroff). [14:44] start on runlevel 0 [14:44] console output [14:44] script [14:44] echo "Sending all processes the TERM signal" [14:44] killall5 -15 [14:44] sleep 5 [14:44] echo "Sending all processes the KILL signal" [14:44] killall5 -9 [14:44] sleep 1 [14:44] /sbin/halt -f -p [14:44] end script [14:45] you might want a little more in there than that, of course [14:55] if you have that in a script called 'shutdown', you can make other scripts stop before that ones gets to run by putting 'stop on starting shutdown' in them [15:09] keesj: shutdown has to be implemented by you [15:09] in short [15:10] I do similar to brendan_, hook the sysv shutdown/reboot handlers into shutdown or reboot jobs. [17:19] I'm doing some tests, and just wanted this confirmed if possible - when a job with respawn fails and is restarted, there's no stopped failed signal emitted is there? [17:20] it's only when it's failed a number of times and upstart gives up that the stopped failed is emitted? [19:23] jdong: thank , I was afraid of that [19:26] I don't have sysv installed at al , no shutdown etc :p [19:28] and the shutdown/halt are booth provided by the upstart sysv compatibility layer [19:45] mdales: i believe so. you could put a sleep in your event script then watch initctl status to see the event status as it's respawning [19:47] keesj: you could just have shutdown and reboot as shell scripts that would call "initctl start shutdown" "initctl start restart" and just write event scripts for those [19:51] but what command would perform the "real" shudown/reboot [19:52] I guess I really need to understand how that works. thanks for the help [20:05] oh right, you'd be missing halt [20:05] duh [20:06] doing too many things at once, sorry :) === cdahlin is now known as sadmac2 [20:43] :p === keesj is now known as k-way