[Unit]
Description=Redmine server
After=syslog.target
After=network.target
[Service]
Type=simple
User=redmine
Group=redmine
WorkingDirectory=/home/redmine/redmine/redmine-current/
Environment=RAILS_ENV=production
ExecStart=/home/redmine/bin/unicorn_rails -E production -c /home/redmine/redmine/redmine-current/config/unicorn.rb
# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300
[Install]
WantedBy=multi-user.target