Koha/debian/templates/koha-worker@.service
David Cook 6e21b86f66 Bug 26363: Provide a systemd unit file for koha-worker in package installs
While the packages already have a koha-zebra script that creates a service
using the 'daemon' utility, this unit file template provides an alternative.

Note that currently you'd have to start the service using the following:

```systemctl start koha-worker@NAME.service```

Where NAME is the name of your Koha instance.

The systemctl enable/start commands could be automated more with helper
scripts in debian/scripts, but this is a first step.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-03-01 10:51:15 +01:00

18 lines
449 B
Desktop File

# koha-worker@.service
# /etc/systemd/system/koha-worker@.service
[Unit]
Description=Koha Task Queue Worker
After=syslog.target network.target
[Service]
Environment=PERL5LIB=/usr/share/koha/lib
Environment=KOHA_CONF=/etc/koha/sites/%i/koha-conf.xml
ExecStart=/usr/share/koha/bin/background_jobs_worker.pl
Restart=on-failure
RestartSec=5s
StartLimitBurst=3
StartLimitInterval=60
SyslogIdentifier=koha-worker_%i
[Install]
WantedBy=multi-user.target