#
# Stripped PRNGd out of it for the time being.
-AWK=/usr/bin/awk
CAT=/usr/bin/cat
KILL=/usr/bin/kill
-PS=/usr/bin/ps
-XARGS=/usr/bin/xargs
prefix=%%openSSHDir%%
etcdir=%%configDir%%
HOST_KEY_DSA=$etcdir/ssh_host_dsa_key
HOST_KEY_RSA=$etcdir/ssh_host_rsa_key
-killproc() {
- _procname=$1
- _signal=$2
- ${PS} -u root | ${AWK} '/'"$_procname"'$/ {print $1}' | ${XARGS} ${KILL}
-}
-
checkkeys() {
if [ ! -f $HOST_KEY_RSA1 ]; then
if [ ${PID:=0} -gt 1 -a ! "X$PID" = "X " ]; then
${KILL} ${PID}
else
- echo "Unable to read PID file, killing using alternate method"
- killproc sshd TERM
+ echo "Unable to read PID file"
fi
}