summaryrefslogtreecommitdiff
path: root/sshd.init.redhat
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-11-13 23:56:35 +1100
committerDamien Miller <djm@mindrot.org>1999-11-13 23:56:35 +1100
commit192bd0120af04477b5b18e5f6caef162219c1c12 (patch)
tree737dc1f7da3cb2d86bb0c6e64cfa2b6a0f57a0ac /sshd.init.redhat
parent2cb210f0f729082a2cd3eb8f0c71b85f216a7d2c (diff)
- Tidied default config file some more
- Revised Redhat initscript to fix bug: sshd (re)start would fail if executed from inside a ssh login.
Diffstat (limited to 'sshd.init.redhat')
-rwxr-xr-xsshd.init.redhat13
1 files changed, 7 insertions, 6 deletions
diff --git a/sshd.init.redhat b/sshd.init.redhat
index 40cc92b86..5e9194899 100755
--- a/sshd.init.redhat
+++ b/sshd.init.redhat
@@ -20,16 +20,17 @@ RETVAL=0
20case "$1" in 20case "$1" in
21 start) 21 start)
22 echo -n "Starting sshd: " 22 echo -n "Starting sshd: "
23 daemon /usr/sbin/sshd 23 if [ ! -f /var/run/sshd.pid ] ; then
24 RETVAL=$? 24 /usr/sbin/sshd && success "sshd startup" || failure "sshd startup"
25 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd 25 RETVAL=$?
26 fi
26 echo 27 echo
27 ;; 28 ;;
28 stop) 29 stop)
29 echo -n "Shutting down sshd: " 30 echo -n "Shutting down sshd: "
30 killproc sshd 31 if [ -f /var/run/sshd.pid ] ; then
31 RETVAL=$? 32 killproc sshd
32 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd 33 fi
33 echo 34 echo
34 ;; 35 ;;
35 restart) 36 restart)