diff options
author | Damien Miller <djm@mindrot.org> | 2000-10-16 12:25:17 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-10-16 12:25:17 +1100 |
commit | 2b2cf52471efcff7d5cef4bbf6d724f8c84b0f39 (patch) | |
tree | d7b26b1f8eb3ea62b96cbc2a3a0848d8d0d3de6f /contrib/redhat/sshd.init | |
parent | cd57198b3e0857218ba461b174063d763dcc9d81 (diff) |
- Added condrestart to Redhat init script. Patch from Pekka Savola
<pekkas@netcore.fi>
- Update version in Redhat spec file
Diffstat (limited to 'contrib/redhat/sshd.init')
-rwxr-xr-x | contrib/redhat/sshd.init | 9 |
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 | ;; |
92 | esac | 99 | esac |