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

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



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 you
> >      started -- never seen anyone need this, though, as daemons like apache
> >      have better ways to detect the right daemon to kill... so _maybe_ this
> >      special case can be ignored)
> 
> No, please don't! Ssh makes use of it by starting on sshd daemon,
> which listens on port 22 and forks another instance for each
> incoming connection. If you would kill all "sshd" processes you
> immediatly loose your existing ssh connection, which is bad, if
> you start the upgrade remote via ssh.

"Must deal with" doesn't mean "do it always". It means "can be told to do it
in such a way" :-) Besides, 2. and 3. are mutually exclusive anyway, you
will need a command line switch or something else to select which kind of
behaviour you need.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Attachment: pgprGzSENujWm.pgp
Description: PGP signature


Reply to: