trabajo-afectivo/script/systemd/zammad-scheduler.service

21 lines
400 B
SYSTEMD
Raw Normal View History

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]
Type=forking
EnvironmentFile=/etc/zammad/zammad.env
User=${ZAMMAD_USER}
Group=${ZAMMAD_GROUP}
2017-09-16 15:48:42 +00:00
Restart=always
WorkingDirectory=${ZAMMAD_WORKING_DIRECTORY}
2017-09-16 15:48:42 +00:00
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/scheduler.rb start"
2017-09-16 15:48:42 +00:00
[Install]
WantedBy=zammad.service