Bug 40901: (testing follow-up) Moved legacy code to koha-sysv.postinst
This patch moves the update-rc.d lines from koha-core to koha-sysv, so it only fires if systemd is not in use Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
80e6ddaa90
commit
0af4e80aa0
|
|
@ -287,10 +287,4 @@ done
|
|||
|
||||
db_stop
|
||||
|
||||
# Bug 18250: Correct startup order of koha-common and memcached
|
||||
# Since the init script has been updated, we can force the order in rc.d
|
||||
# by disabling and enabling again.
|
||||
update-rc.d koha-core disable
|
||||
update-rc.d koha-core enable
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
|
|
@ -8,6 +8,12 @@ set -e
|
|||
if [ -d /run/systemd/system ]; then
|
||||
deb-systemd-helper enable koha-common.service >/dev/null || true
|
||||
deb-systemd-invoke start koha-common.service >/dev/null || true
|
||||
else
|
||||
# Bug 18250: Correct startup order of koha-common and memcached
|
||||
# Since the init script has been updated, we can force the order in rc.d
|
||||
# by disabling and enabling again.
|
||||
update-rc.d koha-common disable
|
||||
update-rc.d koha-common enable
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue