2017-09-16 15:48:42 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Zammad scheduler
|
|
|
|
After=syslog.target
|
|
|
|
After=network.target
|
|
|
|
After=zammad.service
|
|
|
|
Requires=zammad.service
|
|
|
|
|
|
|
|
[Service]
|
2017-10-03 09:27:27 +00:00
|
|
|
Type=forking
|
|
|
|
EnvironmentFile=/etc/zammad/zammad.env
|
|
|
|
User=${ZAMMAD_USER:-zammad}
|
|
|
|
Group=${ZAMMAD_GROUP:-zammad}
|
2017-09-16 15:48:42 +00:00
|
|
|
Restart=always
|
|
|
|
|
2017-10-03 09:27:27 +00:00
|
|
|
WorkingDirectory=${ZAMMAD_WORKING_DIRECTORY:-/opt/zammad}
|
2017-09-16 15:48:42 +00:00
|
|
|
|
2017-10-03 09:27:27 +00:00
|
|
|
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY:-bundle} exec script/scheduler.rb start"
|
2017-09-16 15:48:42 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=zammad.service
|