summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-09-03 19:14:58 +1100
committerDamien Miller <djm@mindrot.org>2000-09-03 19:14:58 +1100
commit123cbe8e86b1f6e4c4dc016e76dcac1616971089 (patch)
tree9c2e86211ec3976c23fb22c0da2eb7f15d8e7a36 /contrib
parent1a425f3eeb6e9745ee117669b47053459361d714 (diff)
Fix init script
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/redhat/sshd.init9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/redhat/sshd.init b/contrib/redhat/sshd.init
index 487d1289..a30d4806 100755
--- a/contrib/redhat/sshd.init
+++ b/contrib/redhat/sshd.init
@@ -57,9 +57,14 @@ case "$1" in
echo -n "Starting sshd: "
if [ ! -f $PID_FILE ] ; then
- daemon sshd
+ sshd
RETVAL=$?
- touch /var/lock/subsys/sshd
+ if [ "$RETVAL" = "0" ] ; then
+ success "sshd startup"
+ touch /var/lock/subsys/sshd
+ else
+ failure "sshd startup"
+ fi
fi
echo
;;