/srv/irclogs.ubuntu.com/2011/07/25/#upstart.txt

danoljmorning17:53
danoljso how do I make it so that respawn doesn't go into effect after a stop has been issued?18:00
JanCit should never do that AFAIK18:01
JanCdanolj: maybe somehow it crashes?18:02
danoljhttp://pastebin.com/xu9P54ig18:03
danoljthat's the upstart script for our redis instance18:03
danoljin the pre-stop script the CLI line tells the server to shutdown gracefully18:03
danoljin the redis logs it is indeed shutting down as expected, however, upstart/init simply starts things up again18:03
danoljexit status problem perhaps?18:05
JanCmaybe, although I thought that doesn't matter in case you use 'stop'18:08
=== Md_ is now known as Md
danoljJanC: yes, that is what the docs say, but I've yet to figure out why it continues to restart after stop18:44
danoljokay, here is what is happening18:46
danoljby asking redis to shutdown gracefully, init sees that it has "died" and restarts it18:46
danoljso if I remove the 'cli shutdown' command, all is good, however, it sure would be nice to stop things gracefully18:47
JanCdanolj: you can tell upstart what other exit statuses / signals are allowed to stop it?19:30
danoljJanC: not sure I understand what you're saying20:29
JanCdanolj: I was referring to the "normal exit" stanza20:31
danoljokay, let me go read about it 20:31
danoljJanC: thank you for that pointer, allowing 'TERM' as a valid exit status fixed the problem21:01
danoljer, not problem, rather provided a reasonable solution21:02
danoljThank you21:02

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