dropbear and inittab
Frank Meerkoetter
frank at betaversion.net
Mon Oct 18 04:52:42 WST 2004
Hi,
i would like to have dropbear restarted by init whenever
the server terminates. To implement this i've added
the following line to my /etc/inittab:
SS:2345:respawn:/home/frank/dropbear-0.43/dropbear -p 9999\
-r /tmp/rsa-test
mandark:/home/frank/dropbear-0.43# ps xauw | grep dropb
root 13305 0.0 0.1 1868 572 ? Ss 22:43 0:00
/home/frank/dropbear-0.43/dropbear -p 9999 -r /tmp/rsa
Dropbear is running and i can login, but still there is a problem.
Init thinks that dropbear has terminated and tries to respawn it.
But because dropbear is already running we're not able to bind to port
9999 and terminate. Successive attempts fail in the same way. In the
end init gives up.
Oct 17 22:42:56 localhost init: Re-reading inittab
Oct 17 22:42:56 localhost init: Id "SS" respawning too fast: disabled
for 5 minutes
Dropbear was compiled with it's default options.h file. Configure ran
successfull.
Is it possible to run dropbear from inittab?
How can i fix this problem?
TIA Frank
More information about the Dropbear
mailing list