[08:05] Hey guys - I'm having trouble getting my nginx upstart script to work. Calling "stop nginx" hangs and doesn't stop the server. If I break out of 'stop' and run it again, it tells me nginx has stopped - but in reality it hasn't. - /etc/init/nginx.conf is here: https://gist.github.com/efaccba21c77438425be [08:06] Also - this is Ubuntu 9.10 with upstart version 0.6.3-11 [08:19] what does "status nginx" say before you call "stop" ? [08:20] probably https://bugs.edge.launchpad.net/upstart/+bug/406397 [08:23] Keybuk: have you noticed my last comment on utmp issue? [08:23] https://bugs.launchpad.net/upstart/+bug/183729/comments/15 [08:26] plautrba: yeah I saw [08:30] I think that's probably a better approach [08:30] ie. just having a passing compatibility with utmp/wtmp [08:32] yes, that's the idea [08:32] i used it in a same way for fedora 12 with upstart-0.3.11 - https://bugzilla.redhat.com/attachment.cgi?id=398797&action=edit [08:34] I guess I'd like that code to be somehow merged with util/utmp.c [08:34] and in a function [08:34] but then that means we'd need a shared library between init and util [08:34] and that gets messy ;) [08:35] but then maybe that's an odd way of looking at it [08:35] anyway, bed ;) [08:35] thanks for the patch [08:36] it's used only once in init, I don't think that merging this with utils something worth it [08:36] shall apply and worry about it after ;) [08:36] np, thank for comments ;) [08:43] calling status: status nginx [08:43] nginx stop/killed, process 1199 [08:43] process 1199 didn't exist. [08:57] Yeah - looks like it could be 406397. [15:10] hi [15:11] where is the best place to put an script that must be executed in first place on shutdown and reboot? [15:12] /etc/rc[06].d/K00script doesn't work because X is killed before [20:46] diegows, you're not likely going to be able to drop a script anywhere on teh system and have it do things in X. [20:46] Since X is contains a user session. [20:47] And is not some general place that any running program can pop stuff up on.