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

23 lines
397 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=simple
User=zammad
Group=zammad
Restart=always
WorkingDirectory=/opt/zammad
Environment=RAILS_ENV=production
Environment=BUNDLE_BINARY=bundle
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/scheduler.rb start -t"
[Install]
WantedBy=zammad.service