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 <tomascohen@theke.io>
This commit is contained in:
Mason James 2023-03-31 03:32:10 +13:00 committed by Tomas Cohen Arazi
parent e9fe95b8f4
commit 4d1d18cd2a
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 22 additions and 0 deletions

22
debian/koha-common.service vendored Normal file
View File

@ -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