Re: should installed daemons automatically restart upon upgrade?

1999-10-06 Thread Anthony Towns
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).

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

-- 
Anthony Towns [EMAIL PROTECTED] 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


pgp2WlXBIn4r6.pgp
Description: PGP signature


Re: should installed daemons automatically restart upon upgrade?

1999-10-05 Thread Peter S Galbraith

 Colin Walters [EMAIL PROTECTED] wrote:
  In a parallel problem to this thread:  I have gpm installed for those times
  when I am doing a lot of console work, but generally I don't run it because
  it interferes with Quake II, among other things.  So I did an:
 
  update-rc.d -f gpm remove

I said:

 AFAIK, there is currently no way of `registering' update-rc.d
 commands such that they are [respected] after an upgrade.

Herbert Xu wrote:

 Try editing /etc/init.d/gpm instead.

Of course!  It's a conffile!  Perhaps my brain was turned off?



Re: should installed daemons automatically restart upon upgrade?

1999-10-05 Thread Ingo Saitz
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-AGLinux 2.1r3 (slink)



should installed daemons automatically restart upon upgrade?

1999-10-04 Thread Colin Walters
In a parallel problem to this thread:  I have gpm installed for those times
when I am doing a lot of console work, but generally I don't run it because
it interferes with Quake II, among other things.  So I did an:

update-rc.d -f gpm remove

But when gpm was upgraded by apt, the package's postinst did an:

/etc/init.d/gpm start

Is this correct behavior?  I think we definitely need to come to a conclusion
on this issue.  There should definitely be a way to specify which packages you
want to actually run out of the installed packages.  

-- 
Colin Walters [EMAIL PROTECTED]
http://web.verbum.org/levanti
PGP Fingerprint: A580 5AA1 0887 2032 7EFB  19F4 9776 6282 C207 843A



Re: should installed daemons automatically restart upon upgrade?

1999-10-04 Thread Peter S Galbraith

Colin Walters wrote:

 In a parallel problem to this thread:  I have gpm installed for those times
 when I am doing a lot of console work, but generally I don't run it because
 it interferes with Quake II, among other things.  So I did an:
 
 update-rc.d -f gpm remove
 
 But when gpm was upgraded by apt, the package's postinst did an:
 
 /etc/init.d/gpm start

 Is this correct behavior? 

I think so.  Generally, during an upgrade:

 - daemons are stopped in prerm before the package is removed.
 - the packge to upgrade is removed.
 - `update-rc.d DAEMON remove` is done in postrm.
 - the new package is installed.
 - `update-rc.d DAEMON defaults; /etc/init.d/DAEMON start; is
done in the postinst of the new replacement package.

I think we definitely need to come
 to a conclusion on this issue.  There should definitely be a
 way to specify which packages you want to actually run out of
 the installed packages.

AFAIK, there is currently no way of `registering' update-rc.d
commands such that they are repested after an upgrade.
-- 
Peter Galbraith, research scientist  [EMAIL PROTECTED]
6623'rd GNU/Linux user at the Counter - http://counter.li.org/ 



Re: should installed daemons automatically restart upon upgrade?

1999-10-04 Thread Herbert Xu
Colin Walters [EMAIL PROTECTED] wrote:
 In a parallel problem to this thread:  I have gpm installed for those times
 when I am doing a lot of console work, but generally I don't run it because
 it interferes with Quake II, among other things.  So I did an:

 update-rc.d -f gpm remove

Try editing /etc/init.d/gpm instead.
-- 
Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmVHI~} [EMAIL PROTECTED]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt