Re: should installed daemons automatically restart upon upgrade?
MoiN
On Mon, Oct 04, 1999 at 03:27:51PM -0400, Peter S Galbraith wrote:
> AFAIK, there is currently no way of `registering' update-rc.d
> commands such that they are repested after an upgrade.
No, but you can move the S* links to K* links. This settings would be
preserved by update-rc.d because it does nothing if it finds at least
*one* link left that fits in the [KS][0-9][0-9]{package} naming scheme.
Perhaps every postinst shold do something like this:
if test -e /etc/rc`runlevel | cut -d\ -f2`.d/S??$DAEMON; then
/etc/init.d/$DAEMON start
fi
which looks for existence of the S* link in the rcN.d directory with N
corresponding to the current runlevel.
Ingo
--
List.Unix-AG Linux 2.1r3 (slink)
Reply to: