Subject: Re: bug#723: init-system-helpers: update-rc.d calls systemctl on a SysVinit system, creating a recursion

From: Mark Hindley <[email-masked]>
Date: Mon, 14 Nov 2022 10:53:24 +0000

Antony,

On Mon, Nov 14, 2022 at 11:31:39AM +0100, Where all about bugs in Devuan packages is reported wrote:
> > Hmmm, I get completely different behaviour with that command:-
> > 
> > mark@apollo:~% sudo update-rc.d enable rsyslog
> > usage: update-rc.d [-f] <basename> remove
> >        update-rc.d [-f] <basename> defaults
> >        update-rc.d [-f] <basename> defaults-disabled
> >        update-rc.d <basename> disable|enable [S|2|3|4|5]
> >                 -f: force
> 
> Um, "update-rc.d rsyslog enable" != "update-rc.d enable rsyslog".

Thanks for pointing out my obvious (but not to me!) mistake.

So I can now reproduce this, but only if systemctl-service-shim is installed. If
it is removed, update-rc.d behaves as expected.

[Adding bgstack15]

Is this an issue in the way systemctl-service-shim behaves? I don't see it with
systemctl on a Debian sysvinit system.

Thanks.

Mark