retitle 164471 update-rc.d prints unnecessary warnings
severity 164471 minor
thanks

I previously wrote that update-rc.d does not print superfluous messages.
However, I overlooked one.

$ sudo update-rc.d -f foo11 remove > /dev/null
update-rc.d: /etc/init.d/foo11 exists during rc.d purge (continuing)
$ sudo update-rc.d -f foo11 remove > /dev/null
update-rc.d: /etc/init.d/foo11 exists during rc.d purge (continuing)
$

When the -f option is given, this warning message should not be
printed.  The message just encourages maintainers to redirect
stderr to /dev/null.

As for the the normal output to stdout... I don't see why there needs
to be an option to turn it off entirely.  Redirecting stdout to
/dev/null seems like a reasonable way to eliminate update-rc.d's
normal messages.  Perhaps it would be nice to have a '-q' option
that switched off the listing of the symlinks created, leaving
just:

    Added system startup for /etc/init.d/foo.

--
Thomas


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to