dkam | 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:05 |
---|---|---|
dkam | Also - this is Ubuntu 9.10 with upstart version 0.6.3-11 | 08:06 |
Keybuk | what does "status nginx" say before you call "stop" ? | 08:19 |
Keybuk | probably https://bugs.edge.launchpad.net/upstart/+bug/406397 | 08:20 |
plautrba | Keybuk: have you noticed my last comment on utmp issue? | 08:23 |
plautrba | https://bugs.launchpad.net/upstart/+bug/183729/comments/15 | 08:23 |
Keybuk | plautrba: yeah I saw | 08:26 |
Keybuk | I think that's probably a better approach | 08:30 |
Keybuk | ie. just having a passing compatibility with utmp/wtmp | 08:30 |
plautrba | yes, that's the idea | 08:32 |
plautrba | 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:32 |
Keybuk | I guess I'd like that code to be somehow merged with util/utmp.c | 08:34 |
Keybuk | and in a function | 08:34 |
Keybuk | but then that means we'd need a shared library between init and util | 08:34 |
Keybuk | and that gets messy ;) | 08:34 |
Keybuk | but then maybe that's an odd way of looking at it | 08:35 |
Keybuk | anyway, bed ;) | 08:35 |
Keybuk | thanks for the patch | 08:35 |
plautrba | it's used only once in init, I don't think that merging this with utils something worth it | 08:36 |
Keybuk | shall apply and worry about it after ;) | 08:36 |
plautrba | np, thank for comments ;) | 08:36 |
dkam | calling status: status nginx | 08:43 |
dkam | nginx stop/killed, process 1199 | 08:43 |
dkam | process 1199 didn't exist. | 08:43 |
dkam | Yeah - looks like it could be 406397. | 08:57 |
diegows | hi | 15:10 |
diegows | where is the best place to put an script that must be executed in first place on shutdown and reboot? | 15:11 |
diegows | /etc/rc[06].d/K00script doesn't work because X is killed before | 15:12 |
wasabi_ | 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 |
wasabi_ | Since X is contains a user session. | 20:46 |
wasabi_ | And is not some general place that any running program can pop stuff up on. | 20:47 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!