From e9be930d159e678fa80686448d5ac4ba9cff32c4 Mon Sep 17 00:00:00 2001 From: Mason James Date: Fri, 31 Mar 2023 03:32:10 +1300 Subject: [PATCH] Bug 33371: Add 'koha-common.service' systemd service to test - install current package - note following $message on install 'Failed to enable unit: Unit /run/systemd/generator.late/koha-common.service is transient or generated.' - apply patch, build package, install new package - note $message is gone! :) - test koha-common.service # systemctl start koha-common # systemctl status koha-common | grep running Active: active (running) since Sun 2023-04-02 00:27:31 NZDT <<< # systemctl stop koha-common # systemctl status koha-common | grep dead Active: inactive (dead) since Sun 2023-04-02 00:25:34 NZDT <<< --- debian/koha-common.service | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 debian/koha-common.service diff --git a/debian/koha-common.service b/debian/koha-common.service new file mode 100644 index 0000000000..0cad4b2832 --- /dev/null +++ b/debian/koha-common.service @@ -0,0 +1,22 @@ +# koha-common.service +# /etc/systemd/system/koha-common.service + +[Unit] +Description=Start required services for each Koha instance +SourcePath=/etc/init.d/koha-common +Before=multi-user.target +Before=graphical.target +After=remote-fs.target +After=memcached.service + +[Service] +Type=forking +Restart=no +TimeoutSec=5min +IgnoreSIGPIPE=no +KillMode=process +GuessMainPID=no +RemainAfterExit=yes +SuccessExitStatus=5 6 +ExecStart=/etc/init.d/koha-common start +ExecStop=/etc/init.d/koha-common stop -- 2.30.2