Skip to content

Instantly share code, notes, and snippets.

@valentineus
Created October 2, 2017 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valentineus/b882f32a00dfe3b9a1b563a6ba7959e1 to your computer and use it in GitHub Desktop.
Save valentineus/b882f32a00dfe3b9a1b563a6ba7959e1 to your computer and use it in GitHub Desktop.
SystemD service for the standard Debian package.
# /etc/systemd/system/redmine.service
[Unit]
Description=Redmine server
After=syslog.target
After=network.target
[Service]
Type=simple
User=redmine
Group=redmine
ExecStart=/usr/bin/ruby /usr/share/redmine/bin/rails server webrick -e production
# 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