diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/redhat/sshd.init | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/redhat/sshd.init b/contrib/redhat/sshd.init index 487d1289..a30d4806 100755 --- a/contrib/redhat/sshd.init +++ b/contrib/redhat/sshd.init @@ -57,9 +57,14 @@ case "$1" in echo -n "Starting sshd: " if [ ! -f $PID_FILE ] ; then - daemon sshd + sshd RETVAL=$? - touch /var/lock/subsys/sshd + if [ "$RETVAL" = "0" ] ; then + success "sshd startup" + touch /var/lock/subsys/sshd + else + failure "sshd startup" + fi fi echo ;; |