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:
parent
e9fe95b8f4
commit
4d1d18cd2a
|
|
@ -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
|
||||
Loading…
Reference in New Issue