ansible-role-zammad/templates/systemd/zammad-worker.service.j2

19 lines
398 B
Django/Jinja

[Unit]
Description=Zammad Background Worker
After=syslog.target
After=network.target
After=zammad.service
Requires=zammad.service
[Service]
EnvironmentFile=/etc/zammad/zammad.env
User={{ zammad_user }}
Group={{ zammad_user }}
Restart=always
WorkingDirectory={{ zammad_home }}
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/background-worker.rb start"
[Install]
WantedBy=zammad.service