3 ms·
Just use something like supervisord: http://supervisord.org/ http://supervisord.org/ Super easy to setup - way easier than manually writing init scripts - and
by TylerE 12y ago
Just use something like supervisord: http://supervisord.org/ http://supervisord.org/
Super easy to setup - way easier than manually writing init scripts - and it'll handle things like auto-restarting the process if it dies (if you want it to).
It also supports dependency chaining (e.g. before starting the web service, start the DB)
- wtf_is_up 12y agoYeah. I use systemd if the target env already has it, otherwise supervisord does a fine job.
- rebelnz 12y agoI concur - just set up a couple of sites (written in go) and use Supervisor - its a nice tool and pretty intuitive. Using conf file to specify run app as particular user, set environment variables, logs, autostart etc.. - good to have in one place.