donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 3a976fb3e0fa73d2f1206945d36dd8785bfb8347
parent 9e36155c5f56c8895ca3da0d776c37d02ffa1938
Author: Florian Dold <dold@taler.net>
Date:   Tue,  8 Sep 2026 15:39:44 +0200

Debian: stop services when removing the package

Stop the product target and slice explicitly on removal. Trixie
debhelper suppresses automatic stop snippets when --no-start is used.
Leave upgrades passive and remove the unused debconf interaction from
prerm.

Diffstat:
Mdebian/donau.prerm | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/donau.prerm b/debian/donau.prerm @@ -2,10 +2,14 @@ set -e -if [ -f /usr/share/debconf/confmodule ]; +# --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 - . /usr/share/debconf/confmodule + deb-systemd-invoke stop 'donau.target' >/dev/null || true + deb-systemd-invoke stop 'donau.slice' >/dev/null || true fi -db_stop +#DEBHELPER# + exit 0