Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-11 Thread Henrique M Holschuh
On Sun, 10 Sep 2000, Ingo Saitz wrote: > On Sun, Sep 10, 2000 at 09:19:10AM -0300, Henrique M Holschuh wrote: > > BTW, on an unrelated note, a ps | grep solution *MUST* deal with the > > following possible scenarios, > [...] > > 3. Multiple instances of daemon (and you want to kill only the one y

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-11 Thread Henrique M Holschuh
On Mon, 11 Sep 2000, Herbert Xu wrote: > On Sun, Sep 10, 2000 at 09:19:10AM -0300, Henrique M Holschuh wrote: > > On Sun, 10 Sep 2000, Herbert Xu wrote: > > > > > Which is why it should only be killed in prerm/preinst. > > > > Which makes all the supposed simple "restart" solution for the runlevel

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Herbert Xu
On Sun, Sep 10, 2000 at 09:19:10AM -0300, Henrique M Holschuh wrote: > On Sun, 10 Sep 2000, Herbert Xu wrote: > > > Which is why it should only be killed in prerm/preinst. > > Which makes all the supposed simple "restart" solution for the runlevel > problem fail in _all_ cases. Thank you for remin

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Ingo Saitz
MoiN On Sun, Sep 10, 2000 at 09:19:10AM -0300, Henrique M Holschuh wrote: > BTW, on an unrelated note, a ps | grep solution *MUST* deal with the > following possible scenarios, [...] > 3. Multiple instances of daemon (and you want to kill only the one you > started -- never seen anyone need

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Henrique M Holschuh
On Sun, 10 Sep 2000, Henrique M Holschuh wrote: > -x...), and only return a exit status code of 1 (start daemon) if this That should be exit status code 0, of course. Oh well... -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind the

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Henrique M Holschuh
On Sun, 10 Sep 2000, Colin Watson wrote: > [EMAIL PROTECTED] (Henrique M. Holschuh) wrote: > >ISSUE: Is there a need for pre-depends? > > > >A package which needs a future version of the initsciptquery interface > >would need to pre-depends: sysvinit (>=someversion) | filerc > >(>=somev

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Henrique M Holschuh
On Sun, 10 Sep 2000, Herbert Xu wrote: > Brendan O'Dea <[EMAIL PROTECTED]> wrote: > > > > This unfortunately doesn't work if you are trying to kill the previous > > version of a daemon in the postinst of a package, as the binary will > > have changed. > > Which is why it should only be killed in p

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Colin Watson
[EMAIL PROTECTED] (Henrique M. Holschuh) wrote: >ISSUE: Is there a need for pre-depends? > >A package which needs a future version of the initsciptquery interface >would need to pre-depends: sysvinit (>=someversion) | filerc >(>=someversion). How is this done for update-rc.d ? If you'

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Colin Watson
Samuel Hocevar <[EMAIL PROTECTED]> wrote: >On Sat, Sep 09, 2000, Robert D. Hilliard wrote: >> For some reason pidof doesn't work on the dictd daemon, so it may >> not work on others as well. See Bug#67021. > > Then I suggest the following : > > ps ax | grep '[ ]' > > I think the 'gre

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Herbert Xu
Brendan O'Dea <[EMAIL PROTECTED]> wrote: > > This unfortunately doesn't work if you are trying to kill the previous > version of a daemon in the postinst of a package, as the binary will > have changed. Which is why it should only be killed in prerm/preinst. -- Debian GNU/Linux 2.2 is out! ( http

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Matt Zimmerman
On Sat, Sep 09, 2000 at 04:03:50PM -0400, Robert D. Hilliard wrote: > ps ax|grep |grep -v grep works for me. It works for you because you are interactive. A maintainer script is not. If you run ps ax|grep daemon|grep -v grep and you see: 12661 pts/0S 0:00 vi /etc/daemon.conf You

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Henrique M Holschuh
On Sat, 09 Sep 2000, Robert D. Hilliard wrote: > > > daemon is running, and only restart it if it found it was running? > > > > Because if the user removes but not purges a package, all the configuration > > data related to initscripts is kept. The daemon is not running, but the > > runlevel restr

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Brendan O'Dea
On Sat, Sep 09, 2000 at 08:32:24PM -0400, Adam McKenna wrote: >On Sat, Sep 09, 2000 at 06:23:03PM -0400, Robert D. Hilliard wrote: >> Adam McKenna <[EMAIL PROTECTED]> writes: >> >> > >> > On Sat, Sep 09, 2000 at 04:03:50PM -0400, Robert D. Hilliard wrote: >> > > ps ax|grep |grep -v grep work

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Adam McKenna
On Sat, Sep 09, 2000 at 06:23:03PM -0400, Robert D. Hilliard wrote: > Adam McKenna <[EMAIL PROTECTED]> writes: > > > > > On Sat, Sep 09, 2000 at 04:03:50PM -0400, Robert D. Hilliard wrote: > > > ps ax|grep |grep -v grep works for me. > > > > if [ "`pidof `" ] ; then > > ... > > fi > >

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Samuel Hocevar
On Sat, Sep 09, 2000, Robert D. Hilliard wrote: > Adam McKenna <[EMAIL PROTECTED]> writes: > > > > ps ax|grep |grep -v grep works for me. > > > > if [ "`pidof `" ] ; then > > For some reason pidof doesn't work on the dictd daemon, so it may > not work on others as well. See Bug#67021.

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Robert D. Hilliard
Adam McKenna <[EMAIL PROTECTED]> writes: > > On Sat, Sep 09, 2000 at 04:03:50PM -0400, Robert D. Hilliard wrote: > > ps ax|grep |grep -v grep works for me. > > if [ "`pidof `" ] ; then > ... > fi For some reason pidof doesn't work on the dictd daemon, so it may not work on others as w

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-10 Thread Adam McKenna
On Sat, Sep 09, 2000 at 04:03:50PM -0400, Robert D. Hilliard wrote: > ps ax|grep |grep -v grep works for me. if [ "`pidof `" ] ; then ... fi --Adam -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-09 Thread Robert D. Hilliard
[EMAIL PROTECTED] (Henrique M. Holschuh) writes: > (not CC:ed to debian-devel, but I'd rather you had asked it in there instead > of in private. Please forward this reply to -devel, I can't do it without > breaching netiquette ;-) ) I thought I had replied to the list. I must have hit the

RFC: fix for daemon start on package install/upgrade out-of-runlevel

2000-09-09 Thread Henrique M. Holschuh
Hello debs, This is a request for comments (and enhancements ;-) ) for a possible solution to an annoying bug (for those it hits) we currently have: daemons are started during package installs/upgrades regardless of the current runlevel. This behaviour can be fixed, and the fix is not overly comp