summaryrefslogtreecommitdiffstats
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
parent1a425f3eeb6e9745ee117669b47053459361d714 (diff)
Fix init script
-rw-r--r--ChangeLog3
-rwxr-xr-xcontrib/redhat/sshd.init9
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 15b1b948..da17a9c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+20000903
+ - (djm) Fix Redhat init script
+
20000901
- (djm) Pick up Jim's new X11-askpass
- (djm) Release 2.2.0p1
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
;;