5 # The OpenSSH SSH daemon.
8 # Redirects the standard error to the standard output
16 if test ! -f /etc
/ssh
/ssh_host_key ||
test ! -s /etc
/ssh
/ssh_host_key
18 echo "*** ${SVNAME}: Generating /etc/ssh/ssh_host_key ..."
19 /usr
/bin
/ssh-keygen
-t rsa1
-f /etc
/ssh
/ssh_host_key
-N ''
21 if test ! -f /etc
/ssh
/ssh_host_dsa_key ||
test ! -s /etc
/ssh
/ssh_host_dsa_key
23 echo "*** ${SVNAME}: Generating /etc/ssh/ssh_host_dsa_key ..."
24 /usr
/bin
/ssh-keygen
-t dsa
-f /etc
/ssh
/ssh_host_dsa_key
-N ''
26 if test ! -f /etc
/ssh
/ssh_host_rsa_key ||
test ! -s /etc
/ssh
/ssh_host_rsa_key
28 echo "*** ${SVNAME}: Generating /etc/ssh/ssh_host_rsa_key ..."
29 /usr
/bin
/ssh-keygen
-t rsa
-f /etc
/ssh
/ssh_host_rsa_key
-N ''
35 echo "*** ${SVNAME}: Starting sshd ..."
37 # sshd options required for perp service:
38 # -D no detach, run in foreground
39 # -e log to stderr (for tinylog) instead of syslog
41 exec /usr
/sbin
/sshd
-D -e -f /etc
/ssh
/sshd_config
48 echo "*** ${SVNAME}: Exited status $4"
51 echo "*** ${SVNAME}: Killed on signal $5"
54 echo "*** ${SVNAME}: Stopped (${3})"