[Koha-bugs] [Bug 33371] Add 'koha-common.service' systemd service

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 1 04:20:17 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371

Andrew Nugged <nugged at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nugged at gmail.com

--- Comment #5 from Andrew Nugged <nugged at gmail.com> ---
PROBLEM! On my Ubuntu 20.04 LTS it doesnt comes up after REBOOT (!!!).
So I need manually run "service koha-common start".

AFTER REBOOT:

#> service koha-common status
● koha-common.service - Start required services for each Koha instance
     Loaded: loaded (/etc/init.d/koha-common; enabled; vendor preset: enabled)
     Active: inactive (dead)



I found that on my server koha-common.service lacks for

[Install]
WantedBy=multi-user.target

without this, it dies:

#> systemctl enable koha-common
```
Synchronizing state of koha-common.service with SysV service script with
/lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable koha-common
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.
```


and with "Install" block it now ok:

#> systemctl enable koha-common
```
Synchronizing state of koha-common.service with SysV service script with
/lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable koha-common
Created symlink /etc/systemd/system/multi-user.target.wants/koha-common.service
→ /lib/systemd/system/koha-common.service.
```



And on reboot now I have it ALIVE!


#> service koha-common status
● koha-common.service - Start required services for each Koha instance
     Loaded: loaded (/etc/init.d/koha-common; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2023-06-01 05:15:09 EEST; 14s ago

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list