7 PID
=`cat /var/run/sshd.pid 2>/dev/null`
10 stat_busy
"Starting Secure Shell Daemon"
11 [ -f /etc
/ssh
/ssh_host_key
] ||
{ /usr
/bin
/ssh-keygen
-t rsa1
-N "" -f /etc
/ssh
/ssh_host_key
>/dev
/null
; }
12 [ -f /etc
/ssh
/ssh_host_rsa_key
] ||
{ /usr
/bin
/ssh-keygen
-t rsa
-N "" -f /etc
/ssh
/ssh_host_rsa_key
>/dev
/null
; }
13 [ -f /etc
/ssh
/ssh_host_dsa_key
] ||
{ /usr
/bin
/ssh-keygen
-t dsa
-N "" -f /etc
/ssh
/ssh_host_dsa_key
>/dev
/null
; }
14 [ -z "$PID" ] && /usr
/sbin
/sshd
$SSHD_ARGS
23 stat_busy
"Stopping Secure Shell Daemon"
24 [ ! -z "$PID" ] && kill $PID &> /dev
/null
38 echo "usage: $0 {start|stop|restart}"