summaryrefslogtreecommitdiff
path: root/packages/redhat/sshd.init
diff options
context:
space:
mode:
Diffstat (limited to 'packages/redhat/sshd.init')
-rwxr-xr-xpackages/redhat/sshd.init12
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/redhat/sshd.init b/packages/redhat/sshd.init
index 5e9194899..a62866a2a 100755
--- a/packages/redhat/sshd.init
+++ b/packages/redhat/sshd.init
@@ -21,8 +21,16 @@ case "$1" in
21 start) 21 start)
22 echo -n "Starting sshd: " 22 echo -n "Starting sshd: "
23 if [ ! -f /var/run/sshd.pid ] ; then 23 if [ ! -f /var/run/sshd.pid ] ; then
24 /usr/sbin/sshd && success "sshd startup" || failure "sshd startup" 24 case "`type -type success`" in
25 RETVAL=$? 25 function)
26 /usr/sbin/sshd && success "sshd startup" || failure "sshd startup"
27 RETVAL=$?
28 ;;
29 *)
30 /usr/sbin/sshd && echo -n "sshd "
31 RETVAL=$?
32 ;;
33 esac
26 fi 34 fi
27 echo 35 echo
28 ;; 36 ;;