I am trying to create a systemd .service file for a ruby rainbows server.
does anybody have experience with a forking deamon under systemd?
Mine immediatley terminates after starting.
Last edited by wabi (2013-01-03 11:11:02)
I'm not familiar with with ruby rainbows - but forking daemon service files are about the simplest.
Just make sure to include "Type=forking". And learn from my mistake that 'forking' is apparently case sensitive.
If you post what you have we can give better input.
Last edited by Trilby (2013-01-02 13:07:35)
This is a .service file that will work:
Description=Redmine Rainbows Rails server
ExecStart=/usr/bin/bundle exec rainbows --host 127.0.0.1 --port 8001 --env production --daemonize --config-file /var/www/redmine/config/rainbows.rb
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -QUIT $MAINPID
Last edited by wabi (2013-01-03 11:11:38)