[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Extending the update-rc.d API to change runlevel and disable scripts?

On Sun, Apr 27, 2008 at 09:41:49AM +0200, Petter Reinholdtsen wrote:
> [Luk Claes]
> > Isn't this just a matter of stopping the service and renaming the S (K)
> > links to s (k) links so one can easily revert?
> Probably not.  When only stop symlinks are present, one need to know
> which runlevels should keep the stop symlinks, and which should be
> changed.  I suspect the easiest way to revert to the default settings
> is to remove all the packages start settings (update-rc.d -f script
> remove), and reconfigure it to let the postinst script call
> update-rc.d to enable it again.

You probably mis-parsed Luk’s suggestion: He is talking about
lowercasing the initial letters of the start/stop symlinks; this could
easily be changed back again when a script is reactivated.

And since people tend to forget about file-rc: I suppose adding a
special character (for example, a dash) to the beginning command column
in /etc/runlevel.conf and ignoring these lines in /etc/init.d/rc would
work well for this purpose.

Best regards,
Michael Schutte <m.schutte.jr@gmail.com>

Attachment: signature.asc
Description: Digital signature

Reply to: