I'm having a hard time writing an upstart configuration file to start (and keep alive) the unicorn web server on a Ubuntu box.
How should I set the respawn
and expect
parameters? With respawn
enabled the process is continously restarted (I see on top its PID changing continuously and the old one becoming zombie). If I remove the directive then the process isn't restarted when it dies.
According to the upstart documentation the expect parameter might be crucial: what's the unicorn fork-wise behaviour? Any clue?