Bug#584082: -f is actually enabled by default

Felipe Sateler fsateler at debian.org
Thu Nov 15 00:21:25 GMT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20181114/567f03ff/attachment-0002.html>


More information about the Pkg-systemd-maintainers mailing list