[16:41] <cqql> I am looking for something like a `restart on` stanza. Is there a way to do such a thing?
[16:43] <cqql> To 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:44] <cqql> I guess, I could make my job an instance job
[16:49] <jodh> cqql: You can create a second job that specifies something like "start on app-deployed\nexec { stop unicorn || true; } && start unicorn"
[16:56] <cqql> The problem is, that unicorn does some tricky live reloading stuff instead of actually restarting
[16:57] <cqql> But I will try this anyway
[16:59] <JanC> then why not just send that reload signal (or whatever it is using to do that)?
[16:59] <cqql> I am trying this now
[17:00] <cqql> So should I make my second job a task (in the upstart sense)?
[17:02] <jodh> cqql: 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] <jodh> cqql: yes, task would make sense