From 0af4e80aa02d1544ae1047c67f3949561b160dd4 Mon Sep 17 00:00:00 2001 From: Jake Deery Date: Tue, 24 Mar 2026 14:10:43 +0000 Subject: [PATCH] Bug 40901: (testing follow-up) Moved legacy code to koha-sysv.postinst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize Signed-off-by: Pedro Amorim --- debian/koha-core.postinst | 6 ------ debian/koha-sysv.postinst | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/debian/koha-core.postinst b/debian/koha-core.postinst index c70827ffb9..3b312507c4 100644 --- a/debian/koha-core.postinst +++ b/debian/koha-core.postinst @@ -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 diff --git a/debian/koha-sysv.postinst b/debian/koha-sysv.postinst index 54c5ad42e6..10a3d0ff6d 100755 --- a/debian/koha-sysv.postinst +++ b/debian/koha-sysv.postinst @@ -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