Control: tags -1 patch

Johannes,

Thanks for this.

On Tue, Jan 13, 2026 at 09:21:42PM +0100, Johannes Stezenbach wrote:
> Maybe something like this can detect if seatd is in use:
> 
>   grep /run/seatd.sock /proc/net/unix | cut -d " " -f 6 | grep 03

While we could roll our own here, but I am inclined to use the standard dh
interface.

The following patch to d/rules avoids restarting seatd on upgrades. Diff of
generated postinst attached.

Does that work for you?

Mark

commit 069e5b97da684dd6c1b8418e2d05c9a999ef1280
Author: Mark Hindley <[email protected]>
Date:   Wed Jan 14 07:22:14 2026 +0000

    d/rules: use dh_installinit --no-stop-on-upgrade.
    
    Closes: #1125426

diff --git a/debian/rules b/debian/rules
index 515b947..2825518 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,3 +8,6 @@ CONFFLAGS = \
 
 override_dh_auto_configure:
        dh_auto_configure -- $(CONFFLAGS)
+
+override_dh_installinit:
+       dh_installinit --no-stop-on-upgrade

diff -u /var/lib/dpkg/info/seatd.postinst /tmp/seatd.postinst
--- /var/lib/dpkg/info/seatd.postinst	2026-01-06 10:16:08.000000000 +0000
+++ /tmp/seatd.postinst	2026-01-14 07:27:54.775995896 +0000
@@ -4,12 +4,7 @@
 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
 	if [ -z "$DPKG_ROOT" ] && [ -x "/etc/init.d/seatd" ]; then
 		update-rc.d seatd defaults >/dev/null
-		if [ -n "$2" ]; then
-			_dh_action=restart
-		else
-			_dh_action=start
-		fi
-		invoke-rc.d --skip-systemd-native seatd $_dh_action || exit 1
+		invoke-rc.d --skip-systemd-native seatd start || exit 1
 	fi
 fi
 # End automatically added section

Diff finished.  Wed Jan 14 07:33:11 2026

Reply via email to