[11:30] <telmich> good day
[11:31] <telmich> I'm trying to find out why my init script is not executed on shutdown on centos 6.3 which seems to use upstart - can you give me a pointer on how to debug this
[11:31] <telmich> the chkconfig output and the init script is placed at http://home.schottelius.org/~nico/unix/linux/centos/
[12:53] <jodh> telmich: firstly, why aren't you writing an Upstart job then? :-)
[12:55] <jodh> telmich: I suspect your problem is that you have not created a lock file for your SysV service. Take a look at RedHats /etc/rc and I think you'll find you need to create /var/lock/subsys/$service. This is totally RH-specific behaviour - nothing to do with Upstart btw.
[12:55] <telmich> jodh: found the bug - it's in centos - but I'm not actually interested in using upstart, it "has just been placed there" by centos
[12:55] <telmich> jodh: yep, that's what I found ~5 minutes ago - but good to have this verified
[13:47] <SpamapS> jodh: how's stateful re-exec looking? No show-stoppers?
[13:47] <SpamapS> jodh: I've been running your PPA on my two quantal boxes since the call for testing. No troubles that I've seen yet.
[14:12] <jodh> SpamapS: alas, it won't make it into quantal. The tests are not complete yet and I've discovered an issue that needs resolving before it's made generally available. The plan is to get it into 'R' as early as possible.
[14:46] <SpamapS> jodh: cool. Any chance R will also see a fix for the old dead-pid bug?
[14:56] <jodh> SpamapS: difficult to say at this stage. I'd certainly like to see that issue resolved. There's an idea for me to run an Upstart dev workshop session @ UDS that might encourage more contributions so we can work though the TODO list faster :)
[15:17] <gyre007> how does upstart compare to runit ? can I use upstart as a service supervisor ?
[15:19] <jodh> gyre007: Upstart is a service supervisor. See: http://upstart.ubuntu.com/ and http://upstart.ubuntu.com/cookbook/.
[15:21] <gyre007> cool jodh, how does it compare to runit...we are in a process of deciding whether to go with upstart or runit...i read that upstart is not working properly in EC2 ....
[15:22] <jodh> gyre007: I've never used runinit. What EC2 problem are you referring to?
[15:22] <gyre007> some people are saying that upstart has troubles with reloading configs ? because of the networkFS nature of EC2
[15:23] <gyre007> that inotify has some problems with it...
[15:23] <SpamapS> gyre007: thats nonsense
[15:24] <jodh> gyre007: sorry, I don't know what you mean. There are no problems with inotify and upstart that I'm aware of.
[15:24] <SpamapS> gyre007: EC2 is not a network FS
[15:24] <gyre007> well I dont know I havent tried it...thats why I came here to ask....as I said we are in a process of deciding which tool to use...
[15:24] <SpamapS> gyre007: can you please point me where these rumors are being spread so I can help them find the truth
[15:25] <gyre007> SpamapS, its not NFS....but the FS has a "etwork" nature
[15:25] <gyre007> SpamapS, on Quora
[15:25] <SpamapS> gyre007: EC2 uses block devices attached to VMs. Those block devices have regular file systems running on them, and inotify works great.
[15:25] <SpamapS> gyre007: inotify is also not *required* for upstart to work
[15:25] <SpamapS> gyre007: it makes things convenient, but you can also just 'sudo initctl reload-configuration' and boom.. new configuration
[15:26] <SpamapS> gyre007: this might be a good reason for me to finally join Quora ;)
[15:26] <gyre007> :)
[15:27] <gyre007> one more thing...does it restart the service if it crashes
[15:28] <SpamapS> gyre007: yes
[15:28] <SpamapS> gyre007: fairly configurable.. but it may give up.. so its just a convenience, you'll want something smarter if you need it to apply complex logic
[15:29] <SpamapS> gyre007: 'man 5 init' and read 'respawn' and 'respawn limit'
[15:29] <gyre007> it may give up :)...in what situations ?
[15:30] <SpamapS> gyre007: when the respawn limits are reached
[15:30] <gyre007> I see...reading up now...interesting
[15:30] <SpamapS> gyre007: also 'normal exit' is important
[15:32] <gyre007> i see...does upstart use init script or does it completely ignore them ?
[15:34] <jodh> gyre007: it supports SysV services as well as its own "jobs". I strongly recommend having a read through the Upstart Cookbook.
[15:36] <gyre007> yeah will do...its quite massive though :)....looks bigger than the bible mate
[15:44] <jodh> gyre007: it does need a bit of a restructure. For the hyper-terse overview, read "man 5 init" (which is still "the" Bible for Upstart).