exit 0
fi
+checkconfig() {
+ /usr/sbin/sshd -t || exit 1
+}
+
RETVAL=0
# See how we were called.
case "$1" in
[ -x /sbin/restorecon ] && /sbin/restorecon /etc/ssh/ssh_host_dsa_key || :
fi
+ checkconfig
+
if [ ! -f /etc/ssh/ssh_host_key ]; then
msg_not_running OpenSSH
nls "No SSH host key found! You must run \"%s init\" first." "$0"
fi
;;
restart)
+ checkconfig
$0 stop
$0 start
exit $?
killproc sshd -HUP
RETVAL=$?
else
- msg_not_running OpenSSH >&2
+ msg_not_running OpenSSH
exit 7
fi
;;