diff options
author | Damien Miller <djm@mindrot.org> | 1999-11-13 23:56:35 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-11-13 23:56:35 +1100 |
commit | 192bd0120af04477b5b18e5f6caef162219c1c12 (patch) | |
tree | 737dc1f7da3cb2d86bb0c6e64cfa2b6a0f57a0ac /sshd.init.redhat | |
parent | 2cb210f0f729082a2cd3eb8f0c71b85f216a7d2c (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-x | sshd.init.redhat | 13 |
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 | |||
20 | case "$1" in | 20 | case "$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) |