]> git.koha-community.org Git - koha.git/commit
Bug 26363: Provide a systemd unit file for koha-worker for source installs
authorDavid Cook <dcook@prosentient.com.au>
Tue, 6 Oct 2020 06:30:56 +0000 (06:30 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 1 Mar 2021 09:51:15 +0000 (10:51 +0100)
commit21a850a3dccc07bd5b6423bc8c9a902aba7958fc
treed5b79d2f8c53eb6f31b7832b06a90b01c9393f58
parent3beeb020ef7d8ef733f34ffef5202bb328a8b867
Bug 26363: Provide a systemd unit file for koha-worker for source installs

This patch adds a systemd unit file which gets rewritten according to
the configuration specified by Makefile.PL. This can be linked or
copied to systemd directories for running a systemd service for
background_jobs_worker.pl

Test plan:
1. perl Makefile.PL
1a. Choose "single" installation
1b. Choose "/opt/koha" for a file path
2. make
3. vi blib/KOHA_CONF_DIR/koha-worker.service
4. Verify that PERL5LIB, KOHA_CONF, ExecStart, and SyslogIdentifier
all appear to be correctly filled in

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>
Makefile.PL
etc/koha-worker.service [new file with mode: 0644]