diff options
author | Damien Miller <djm@mindrot.org> | 2000-09-03 19:14:58 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-09-03 19:14:58 +1100 |
commit | 123cbe8e86b1f6e4c4dc016e76dcac1616971089 (patch) | |
tree | 9c2e86211ec3976c23fb22c0da2eb7f15d8e7a36 /contrib/redhat/sshd.init | |
parent | 1a425f3eeb6e9745ee117669b47053459361d714 (diff) |
Fix init script
Diffstat (limited to 'contrib/redhat/sshd.init')
-rwxr-xr-x | contrib/redhat/sshd.init | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/redhat/sshd.init b/contrib/redhat/sshd.init index 487d12897..a30d48065 100755 --- a/contrib/redhat/sshd.init +++ b/contrib/redhat/sshd.init | |||
@@ -57,9 +57,14 @@ case "$1" in | |||
57 | 57 | ||
58 | echo -n "Starting sshd: " | 58 | echo -n "Starting sshd: " |
59 | if [ ! -f $PID_FILE ] ; then | 59 | if [ ! -f $PID_FILE ] ; then |
60 | daemon sshd | 60 | sshd |
61 | RETVAL=$? | 61 | RETVAL=$? |
62 | touch /var/lock/subsys/sshd | 62 | if [ "$RETVAL" = "0" ] ; then |
63 | success "sshd startup" | ||
64 | touch /var/lock/subsys/sshd | ||
65 | else | ||
66 | failure "sshd startup" | ||
67 | fi | ||
63 | fi | 68 | fi |
64 | echo | 69 | echo |
65 | ;; | 70 | ;; |