본문 바로가기

Information

redmine4 centos7 systemctl

[Unit]
Description=Redmine server
After=syslog.target
After=network.target

[Service]
Type=simple
User=nginx
Group=nginx
ExecStart=/bin/bash -c 'source /usr/local/rvm/scripts/rvm && ruby /opt/redmine/bin/rails server unicorn -eproduction'

# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300

[Install]
WantedBy=multi-user.target