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

24 lines
491 B
Text
Raw Normal View History

{{ ansible_managed | comment }}
2023-05-19 11:59:02 +02:00
2021-07-28 18:28:22 +02:00
[Unit]
2023-05-06 23:34:18 +02:00
Description=Zammad Background Worker
2021-07-28 18:28:22 +02:00
After=syslog.target
After=network.target
2023-05-19 11:59:02 +02:00
After={{ zammad_service }}
Requires={{ zammad_service }}
StartLimitIntervalSec=6
StartLimitBurst=10
2021-07-28 18:28:22 +02:00
[Service]
2023-05-19 11:59:02 +02:00
EnvironmentFile={{ zammad_env_file }}
2021-11-13 08:39:24 +01:00
User={{ zammad_user }}
Group={{ zammad_user }}
2021-07-28 18:28:22 +02:00
Restart=always
WorkingDirectory={{ zammad_home }}
2023-05-06 23:34:18 +02:00
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/background-worker.rb start"
2021-07-28 18:28:22 +02:00
[Install]
2023-05-19 11:59:02 +02:00
WantedBy={{ zammad_service }}