commit 34ebf76f1b7089120b9774f77078f9960bf265d7 parent d5ea5c3d69031ac38bdcbdb92dfc881a2f4777c9 Author: Christian Grothoff <christian@grothoff.org> Date: Fri, 27 Dec 2024 11:53:49 +0100 explicitly stop taler services on uninstall Diffstat:
| A | debian/taler-auditor.prerm | | | 15 | +++++++++++++++ |
| M | debian/taler-exchange.prerm | | | 5 | +++++ |
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/debian/taler-auditor.prerm b/debian/taler-auditor.prerm @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +if [ -f /usr/share/debconf/confmodule ]; +then + . /usr/share/debconf/confmodule +fi + +if [ -d /run/systemd/system ] && [ "$1" = remove ]; then + deb-systemd-invoke stop 'taler-auditor.target' >/dev/null || true + deb-systemd-invoke stop 'taler-auditor.slice' >/dev/null || true +fi + +exit 0 diff --git a/debian/taler-exchange.prerm b/debian/taler-exchange.prerm @@ -7,5 +7,10 @@ then . /usr/share/debconf/confmodule fi +if [ -d /run/systemd/system ] && [ "$1" = remove ]; then + deb-systemd-invoke stop 'taler-exchange.target' >/dev/null || true + deb-systemd-invoke stop 'taler-exchange.slice' >/dev/null || true +fi + db_stop exit 0