Skip to content

Instantly share code, notes, and snippets.

Created January 7, 2013 19:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4477639 to your computer and use it in GitHub Desktop.
Save anonymous/4477639 to your computer and use it in GitHub Desktop.
redmine & unicorn systemd service file
#/usr/lib/systemd/system/redmine.service
[Unit]
Description=Redmine server
After=syslog.target
After=network.target
[Service]
Type=forking
User=redmine
Group=redmine
SyslogIdentifier=redmine-unicorn
ExecStart=/opt/redmine/.gem/ruby/1.9.1/bin/unicorn -E production -c /opt/redmine/redmine/config/unicorn.ru -D
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
WorkingDirectory=/opt/redmine/redmine
PIDFile=/tmp/redmine.pid
# Give a reasonable amount of time for the server to start up/shut down
#TimeoutSec=300
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment