Snapshot

Pekka Savola pekkas at netcore.fi
Sun Oct 15 06:48:53 EST 2000


On Sat, 14 Oct 2000, Damien Miller wrote:

> Another snapshot for your enjoyment and testing.

A few more comments:

1) It seems the (non-working) fix for 'sleep 60 & ; exit' bug was
reverted.  Good.  A new solution to the original problem has to be 
found -- IMO it's not a show-stopper though.

2) I've added condrestart for Red Hat spec file; because in RHL7 all
daemons do that.  In the spec file, sshd restart could be changed to use
condrestart too, if preferred.


-- 
Pekka Savola                 "Tell me of difficulties surmounted, 
Pekka.Savola at netcore.fi      not those you stumble over and fall"
-------------- next part --------------
--- sshd.orig	Sat Oct 14 10:43:10 2000
+++ sshd	Sat Oct 14 15:58:01 2000
@@ -81,12 +81,19 @@
 		$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|condrestart|status}"
 		exit 1
 		;;
 esac


More information about the openssh-unix-dev mailing list