OpenSSH 2.3.0p1: Problem with the init script in the RPM

Sergey Vlasov vsu at mivlgu.murom.ru
Sat Dec 16 05:00:33 EST 2000


There is a problem in the contrib/redhat/sshd.init script: it starts
sshd without specifying the full path (/usr/bin/sshd for the RPM
installation). The daemon starts up and works, but dies when it receives
a SIGHUP, because it is unable to re-exec itself without the full path.
-------------- next part --------------
--- openssh-2.3.0p1/contrib/redhat/sshd.init.initfix	Mon Oct 16 05:25:17 2000
+++ openssh-2.3.0p1/contrib/redhat/sshd.init	Fri Dec 15 20:49:53 2000
@@ -57,7 +57,7 @@
 		
 		echo -n "Starting sshd: "
 		if [ ! -f $PID_FILE ] ; then
-			sshd
+			/usr/sbin/sshd
 			RETVAL=$?
 			if [ "$RETVAL" = "0" ] ; then
 				success "sshd startup"


More information about the openssh-unix-dev mailing list