From 4d1d18cd2a145df7fd1e0f8a690da0b3a03ec38c 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 <<< Signed-off-by: Tomas Cohen Arazi --- 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.39.5