ansible-roles/library/roles/redmine/templates/systemd_unicorn.service

23 lines
648 B
SYSTEMD
Raw Normal View History

[Unit]
# You can create multiple unicorn service by linking unicorn@.service to unicorn@appone.service, unicorn@apptwo.service
# each application reads its settings from /etc/default/unicorn_appone, /etc/default/unicorn_apptwo
Description=Unicorn serving %I app
After=syslog.target
[Service]
Restart=always
RestartSec=10
Type=forking
User={{ redmine_user }}
Group={{ redmine_group }}
WorkingDirectory=/srv/redmine/%I
EnvironmentFile=/etc/default/unicorn-%I
SyslogIdentifier=unicorn-%I
PIDFile={{ unicorn_pid_file }}
KillMode=mixed
KillSignal=SIGQUIT
ExecStart=/usr/bin/bundle exec "${DAEMON} ${DAEMON_OPTS}"
[Install]
WantedBy=multi-user.target