Zammad: Update worker service file

This commit is contained in:
phil 2023-05-06 23:34:18 +02:00
parent 969493b4c7
commit dd490795b3
2 changed files with 3 additions and 4 deletions

View file

@ -7,7 +7,7 @@
loop:
- zammad.service
- zammad-rails.service
- zammad-scheduler.service
- zammad-worker.service
- zammad-websocket.service
- name: "systemd | Erstelle Konfigurationsverzeichnis"

View file

@ -1,12 +1,11 @@
[Unit]
Description=Zammad scheduler
Description=Zammad Background Worker
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_user }}
@ -14,7 +13,7 @@ Restart=always
WorkingDirectory={{ zammad_home }}
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/scheduler.rb start"
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/background-worker.rb start"
[Install]
WantedBy=zammad.service