[File-rc-users] Bug#688140: file-rc: File-rc doesn't restore rcX.d dirs at remove, breaks sysv-rc installation.
Roger Leigh
rleigh at codelibre.net
Tue Mar 5 21:02:26 UTC 2013
On Tue, Mar 05, 2013 at 08:28:32PM +0100, Michael Stapelberg wrote:
> Roger Leigh <rleigh at codelibre.net> writes:
> > The reason for this change is that with file-rc now using insserv
> > to maintain the links in part, it is not really meaningful to
> > "restore" the links. Both file-rc and sysv-rc use insserv, and so
> Could you elaborate on that, please? I don’t see where the file-rc
> package invokes insserv to maintain any links. On the contrary, after
> installing file-rc, /etc/rc*.d/ is deleted and there are no links at
> all.
It /should/ all be contained within update-rc.d. The file-rc
version of update-rc.d takes its defaults from "/sbin/insserv -s".
Looking more closely, this is from the files in /etc/init.d, but
will also use the rc?.d links as well if present. So if the links
are deleted, you'll just get the defaults from the scripts, I think.
So maybe what's missing is a call to insserv to recreate the
default links, or to create the links and run insserv to
correctly reorder them in dependency order. The old link
recreation behaviour used the pre-insserv static ordering IIRC,
and that's certainly wrong.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools
`- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800
More information about the File-rc-users
mailing list