Bug#1040364: orphan-sysvinit-scripts: add triggers to restart daemons

Lorenzo plorenzo at disroot.org
Fri Jul 7 22:38:06 BST 2023


Hi,

On Wed, 5 Jul 2023 18:36:23 +0200 (CEST)
Thorsten Glaser <t.glaser at tarent.de> wrote:

> On Wed, 5 Jul 2023, g1pi at libero.it wrote:
> 
> >The section
> >
> >> # Automatically added by dh_installinit/13.3.4
> >> if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1"
> >> = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [
> >> -x "/etc/init.d/rsyslog" ]; then update-rc.d rsyslog defaults
> >> >/dev/null if [ -n "$2" ]; then
> >>                         _dh_action=restart
> >>                 else
> >>                         _dh_action=start
> >>                 fi
> >>                 invoke-rc.d --skip-systemd-native rsyslog
> >> $_dh_action || exit 1 fi
> >> fi
> >
> >which used to restart the daemon on package upgrade in
> >bullseye/sysvinit, disappeared from rsyslog.postinst in bookworm.
> >Therefore, no restart happens unless systemd is in control.
> 
> This is bad. Let’s ask the debhelper maintainers why this
> is no longer present, as the absence breaks orphan-sysvinit-scripts.
> 

If Debhelper/dh_installinit finds a debian/*.init file in the source of
the package then it installs it as init scripts and relevant snippets
are injected in maintscripts; when the *.init file is removed from the
source dh_installinit code become a noop and the snippets are gone.

Lorenzo

> bye,
> //mirabilos



More information about the Debian-init-diversity mailing list