summaryrefslogtreecommitdiff
path: root/contrib/redhat/sshd.init
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/redhat/sshd.init')
-rwxr-xr-xcontrib/redhat/sshd.init9
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/redhat/sshd.init b/contrib/redhat/sshd.init
index a30d48065..83c10a885 100755
--- a/contrib/redhat/sshd.init
+++ b/contrib/redhat/sshd.init
@@ -81,12 +81,19 @@ case "$1" in
81 $0 start 81 $0 start
82 RETVAL=$? 82 RETVAL=$?
83 ;; 83 ;;
84 condrestart)
85 if [ -f /var/lock/subsys/sshd ] ; then
86 $0 stop
87 $0 start
88 RETVAL=$?
89 fi
90 ;;
84 status) 91 status)
85 status sshd 92 status sshd
86 RETVAL=$? 93 RETVAL=$?
87 ;; 94 ;;
88 *) 95 *)
89 echo "Usage: sshd {start|stop|restart|status}" 96 echo "Usage: sshd {start|stop|restart|status|condrestart}"
90 exit 1 97 exit 1
91 ;; 98 ;;
92esac 99esac