On Wed, May 24, 2000 at 11:56:05AM -0400, Andrew Hall wrote:
> Hello,

> This might be slightly off topic but here goes.  My issue is with
> openssh and inittab.  

> Here is the inittab entry:

> sh:2:respawn:/usr/sbin/sshd


> My problem is two fold.  First init is telling me "init: Id "sh"
> respawning too fast: disabled for 5 minutes".  Why would it be
> respawning too fast.  If I start it on the command line I get no

        Because it's going daemon and forking itself into the background.
The parent process terminates and init doesn't know the difference
and tries to respawn it.

> problems and it starts right off.  Secondly every five minutes after the

        Yeah, but you get a command prompt right back, don't you.
Init doesn't like that!

> disable period init trys to start sshd even though sshd is already
> running!!  My two questions I guess are what is causing init to think

        Second verse, same as the first...  Same cause, same reason,
different symptoms.

> ssh is respawing? and why would init try to start the daemon when it is
> already running?  Does this have something to do with why you can't run
> shell scripts out of init?

        No...  It has to do with not knowing how init works and interacts
with servers.  You might try adding the -i option to the sshd command
line but that's intended for use in inetd mode not init mode.  It doesn't
look like sshd was designed to work out of init the way you are
attempting.  You really need a "do not fork to the background but act
like a daemon anyways" type mode and I don't see that.

        Seems like I recall someone having a way to do this, but since
I never use it like that (I run it from a stock rc script) I don't
recall how to get it to work.  I just recall why it's CFAB on you.

> Thankyou.  

> Andrew Hall

        Mike
-- 
 Michael H. Warfield    |  (770) 985-6132   |  [EMAIL PROTECTED]
  (The Mad Wizard)      |  (770) 331-2437   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!

Reply via email to