[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Restarting systemd user units on package upgrade



On Tue, 02 Dec 2025 at 15:11:08 +0000, Sean Whitton wrote:
We would like the postinst for dgit-infrastructure.deb to restart any
running instances of [a user service] it finds on the host.

dh_installsystemduser seems to have automation for this, but only in compat level 14, which is opt-in and newer than the default. I don't see a way to opt-in to just that one behaviour of compat level 14 without the rest of it.

(/usr/share/debhelper/autoscripts/postinst-systemd-user-restart is the implementation, delegating the actual work to deb-systemd-invoke.)

See also https://bugs.debian.org/1072698 which tracks new behaviour changes and the blockers for compat level 14 being stabilized.

    smcv


Reply to: