Created
January 7, 2013 19:25
-
-
Save anonymous/4477639 to your computer and use it in GitHub Desktop.
redmine & unicorn systemd service file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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