Bug#584082: -f is actually enabled by default
Michael Biebl
biebl at debian.org
Mon May 23 21:43:16 BST 2022
On Wed, 14 Nov 2018 21:21:25 -0300 Felipe Sateler <fsateler at debian.org>
wrote:
> On Wed, Nov 14, 2018 at 7:15 PM Michael Biebl <biebl at debian.org> wrote:
>
> > [CCing debian-init-diversity which is planning to adopt insserv ttbomk]
> >
> > On Tue, 01 Jun 2010 11:15:17 +0800 jidanni at jidanni.org wrote:
> > > Package: sysv-rc
> > > Version: 2.88dsf-7
> > > Severity: wishlist
> > > File: /usr/share/man/man8/update-rc.d.8.gz
> > >
> > > We read
> > > -f Force removal of symlinks even if /etc/init.d/name still
> > exists.
> > >
> > > However we find that indeed you might as well change that to
> > >
> > > -f [no-op, retained for backwards compatibility]
> > >
> > > or
> > > -f Force removal of symlinks even if /etc/init.d/name still
> > > exists [enabled by default]
> > >
> > > Proof:
> > >
> > > # sysv-rc-conf --list cron
> > > cron 0:off 1:off 2:on 3:on 4:on 5:on 6:off
> > > # update-rc.d cron remove
> > > update-rc.d: using dependency based boot sequencing
> > > # sysv-rc-conf --list cron #GONE:
> > > cron
> > > # update-rc.d cron defaults
> > > update-rc.d: using dependency based boot sequencing
> > > update-rc.d: warning: cron stop runlevel arguments (0 1 6) do not match
> > LSB Default-Stop values (1)
> >
> > The -f parameter is mostly just passed along to insserv and causes it to
> > ignore any potential dependency errors afair.
> >
> > If you could remove cron without issues, then this means no other
> > service had a hard dependency on it.
> >
> > At least that's how I understand the meaning of -f.
> > Felipe, is this correct?
> >
>
> Right. It is only passed on to insserv. Therefore it only has meaning when
> initscripts is installed.
>
>
> > If so, I guess the correct fix would be to update the documentation of
> > the -f flag accordingly.
> >
>
> Agreed.
>
> --
>
> Saludos,
> Felipe Sateler
Jesse, as maintainer of sysvinit/insserv, do you want to submit a MR for
this?
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220523/9e3aacdc/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list