diff options
Diffstat (limited to 'packages/redhat/sshd.init')
-rwxr-xr-x | packages/redhat/sshd.init | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/redhat/sshd.init b/packages/redhat/sshd.init index a62866a2a..cac91bb51 100755 --- a/packages/redhat/sshd.init +++ b/packages/redhat/sshd.init | |||
@@ -31,6 +31,7 @@ case "$1" in | |||
31 | RETVAL=$? | 31 | RETVAL=$? |
32 | ;; | 32 | ;; |
33 | esac | 33 | esac |
34 | [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd | ||
34 | fi | 35 | fi |
35 | echo | 36 | echo |
36 | ;; | 37 | ;; |
@@ -40,6 +41,7 @@ case "$1" in | |||
40 | killproc sshd | 41 | killproc sshd |
41 | fi | 42 | fi |
42 | echo | 43 | echo |
44 | [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd | ||
43 | ;; | 45 | ;; |
44 | restart) | 46 | restart) |
45 | $0 stop | 47 | $0 stop |