commit dd2e4785206644403d5b8e1f5bb41bf71b917943
parent 7d49f515c36a05189ccbe4a2fd19c8c3a40c5ae5
Author: Florian Dold <dold@taler.net>
Date: Tue, 8 Sep 2026 15:39:44 +0200
Debian: stop bank, nexus and ebisync on package removal
Add explicit target and slice stops to each service package's prerm.
Trixie debhelper suppresses automatic stop snippets with --no-start;
upgrade operations continue to preserve the operator's service state.
Diffstat:
3 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/debian/libeufin-bank.prerm b/debian/libeufin-bank.prerm
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+# --no-start also suppresses debhelper's stop-on-remove snippet on Trixie.
+# Stop the product explicitly on removal, while leaving upgrades passive.
+if [ -d /run/systemd/system ] && [ "$1" = remove ];
+then
+ deb-systemd-invoke stop 'libeufin-bank.target' >/dev/null || true
+ deb-systemd-invoke stop 'libeufin-bank.slice' >/dev/null || true
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/libeufin-ebisync.prerm b/debian/libeufin-ebisync.prerm
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+# --no-start also suppresses debhelper's stop-on-remove snippet on Trixie.
+# Stop the product explicitly on removal, while leaving upgrades passive.
+if [ -d /run/systemd/system ] && [ "$1" = remove ];
+then
+ deb-systemd-invoke stop 'libeufin-ebisync.target' >/dev/null || true
+ deb-systemd-invoke stop 'libeufin-ebisync.slice' >/dev/null || true
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/libeufin-nexus.prerm b/debian/libeufin-nexus.prerm
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+# --no-start also suppresses debhelper's stop-on-remove snippet on Trixie.
+# Stop the product explicitly on removal, while leaving upgrades passive.
+if [ -d /run/systemd/system ] && [ "$1" = remove ];
+then
+ deb-systemd-invoke stop 'libeufin-nexus.target' >/dev/null || true
+ deb-systemd-invoke stop 'libeufin-nexus.slice' >/dev/null || true
+fi
+
+#DEBHELPER#
+
+exit 0