ServiceRunner
Easily run services for rails apps
Installation
Install it systemwide:
$ gem install service_runner
Usage
Not quite working properly in all cases, but in theory:
with Monit
check process service_name
with pidfile /path/to/app/tmp/pids/service_name.pid
start program = "/bin/su - user -c 'cd /path/to/app/ && /path/to/service_runner start service_name'"
stop program = "/bin/su - user -c 'cd /path/to/app/ && /path/to/service_runner stop service_name'"
Services currently supported are delayed_job
and sidekiq
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request