diff options
author | Damien Miller <djm@mindrot.org> | 2000-10-16 03:25:17 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-10-16 03:25:17 +0200 |
commit | 2b2cf52471efcff7d5cef4bbf6d724f8c84b0f39 (patch) | |
tree | d7b26b1f8eb3ea62b96cbc2a3a0848d8d0d3de6f /contrib/redhat/sshd.init | |
parent | oops - forgot to commit (diff) | |
download | openssh-2b2cf52471efcff7d5cef4bbf6d724f8c84b0f39.tar.xz openssh-2b2cf52471efcff7d5cef4bbf6d724f8c84b0f39.zip |
- 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 $0 start RETVAL=$? ;; + condrestart) + if [ -f /var/lock/subsys/sshd ] ; then + $0 stop + $0 start + RETVAL=$? + fi + ;; status) status sshd RETVAL=$? ;; *) - echo "Usage: sshd {start|stop|restart|status}" + echo "Usage: sshd {start|stop|restart|status|condrestart}" exit 1 ;; esac |