backburner icon indicating copy to clipboard operation
backburner copied to clipboard

Init script for linux systems

Open arrowcircle opened this issue 11 years ago • 4 comments

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.

arrowcircle avatar Jun 04 '13 20:06 arrowcircle

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.

nesquena avatar Jun 04 '13 20:06 nesquena

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

rewritten avatar Nov 14 '13 14:11 rewritten

I'll put a PR with a working script as soon as I have it in production.

Awesome, thanks!

nesquena avatar Nov 15 '13 09:11 nesquena

hey can any one help me by providing useful script

vkeziah avatar Feb 11 '15 09:02 vkeziah