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

Re: should installed daemons automatically restart upon upgrade?

On Wed, Oct 06, 1999 at 12:14:11AM +0200, Ingo Saitz wrote:
> 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

This doesn't work for people using file-rc (which uses files to describe
runlevels instead of directories and symlinks).

aj, who'd love to see a proper way of doing that

Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. PGP encrypted mail preferred.

 ``The thing is: trying to be too generic is EVIL. It's stupid, it 
        results in slower code, and it results in more bugs.''
                                        -- Linus Torvalds

Attachment: pgpUW7BRh4jE0.pgp
Description: PGP signature

Reply to: