Init script for linux systems
Is there any init script for linux to start/stop backburner? For example, if you use monit and want to monitor your workers with pid - its really good to have init script for start/stop/restart.
Good question, for my systems I am using "god" to monitor processes and then the backburner bin with a -d flag and the pid specific that way into /var/run/backburner-1.pid
It would be cool to have a init script for ubuntu, but hasn't been put together yet.
An upstart script (for one worker) should trivial to do, just a plain file containing at least
setuid your_user
expect fork # because of bundle exec...
chdir /your/app/root
exec bundle exec backburner -l /var/log/backburner.log
I'll put a PR with a working script as soon as I have it in production.
Doing it for many workers is more complex, as it involves instance counting, and group starting/stopping
I'll put a PR with a working script as soon as I have it in production.
Awesome, thanks!
hey can any one help me by providing useful script