Scads of defunct processes ins AIX 4.3.3
Doug E Manton
douglas.manton at uk.ibm.com
Mon Sep 17 18:05:52 EST 2001
Chuck,
There is a better way to manage sshd under AIX. The AIX SRC (system
resource controller) can control the SSH daemon, and even respawn it
should it fall over -- without generating tonnes of unneccessary children.
As root, execute:
mkssys -s sshd -u 0 -p /usr/sbin/sshd -a '-D' -G ssh -R -S -n 15 -f 9
Change /usr/sbin/sshd to wherever you have sshd installed. The -R
automatically restarts SSH if it ever falls over. SSH requires the -D
option to prevent it forking (a requirement of the SRC).
You can now start sshd using the command:
startsrc -s sshd
and stop it using (if you just kill it, SRC will start a new one!):
stopsrc -s sshd
You can set it to auto start on boot by adding this line to the end of
/etc/rc.tcpip
start /usr/sbin/sshd "$src_running"
Hope this is useful!
--------------------------------------------------------
Doug Manton, AT&T EMEA Commercial Security Solutions
E: demanton at att.com
--------------------------------------------------------
"If privacy is outlawed, only outlaws will have privacy"
More information about the openssh-unix-dev
mailing list