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: loop:
- zammad.service - zammad.service
- zammad-rails.service - zammad-rails.service
- zammad-scheduler.service - zammad-worker.service
- zammad-websocket.service - zammad-websocket.service
- name: "systemd | Erstelle Konfigurationsverzeichnis" - name: "systemd | Erstelle Konfigurationsverzeichnis"

View file

@ -1,12 +1,11 @@
[Unit] [Unit]
Description=Zammad scheduler Description=Zammad Background Worker
After=syslog.target After=syslog.target
After=network.target After=network.target
After=zammad.service After=zammad.service
Requires=zammad.service Requires=zammad.service
[Service] [Service]
Type=forking
EnvironmentFile=/etc/zammad/zammad.env EnvironmentFile=/etc/zammad/zammad.env
User={{ zammad_user }} User={{ zammad_user }}
Group={{ zammad_user }} Group={{ zammad_user }}
@ -14,7 +13,7 @@ Restart=always
WorkingDirectory={{ zammad_home }} 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] [Install]
WantedBy=zammad.service WantedBy=zammad.service