23 lines
648 B
Desktop File
23 lines
648 B
Desktop File
[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
|