/srv/irclogs.ubuntu.com/2014/03/17/#upstart.txt

cqqlI am looking for something like a `restart on` stanza. Is there a way to do such a thing?16:41
cqqlTo be exact I have a server that is running my app and an upstart job, that run a unicorn server or reloads it, if it is already running. When the app is deployed, I emit an app-deployed upstart event. The thing, that is missing, is a way to restart the unicorn job, when this event is received.16:43
cqqlI guess, I could make my job an instance job16:44
jodhcqql: You can create a second job that specifies something like "start on app-deployed\nexec { stop unicorn || true; } && start unicorn"16:49
cqqlThe problem is, that unicorn does some tricky live reloading stuff instead of actually restarting16:56
cqqlBut I will try this anyway16:57
JanCthen why not just send that reload signal (or whatever it is using to do that)?16:59
cqqlI am trying this now16:59
cqqlSo should I make my second job a task (in the upstart sense)?17:00
jodhcqql: if unicorn can reload itself without changing pid (ie re-exec's), specify "reload signal SIGNAL" in the unicorn job and have the helper job call "reload" rather than "stop+start".17:02
jodhcqql: yes, task would make sense17:02

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