2017-09-16 15:48:42 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Zammad railsserver
|
|
|
|
After=syslog.target
|
|
|
|
After=network.target
|
|
|
|
After=zammad.service
|
|
|
|
Requires=zammad.service
|
|
|
|
|
|
|
|
[Service]
|
2017-10-03 09:27:27 +00:00
|
|
|
EnvironmentFile=/etc/zammad/zammad.env
|
2017-10-03 10:50:29 +00:00
|
|
|
User=zammad
|
|
|
|
Group=zammad
|
2017-09-16 15:48:42 +00:00
|
|
|
Restart=always
|
|
|
|
|
2017-10-03 10:50:29 +00:00
|
|
|
WorkingDirectory=/opt/zammad
|
2017-09-16 15:48:42 +00:00
|
|
|
|
2017-10-03 09:37:33 +00:00
|
|
|
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/rails server -b ${ZAMMAD_BIND_IP} -p ${ZAMMAD_RAILS_PORT}"
|
2017-09-16 15:48:42 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=zammad.service
|