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:
Jake Deery 2026-03-24 14:10:43 +00:00 committed by Pedro Amorim
parent 80e6ddaa90
commit 0af4e80aa0
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
2 changed files with 6 additions and 6 deletions

View File

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

View File

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