SOURCES: opensshd.init - pass --pidfile to daemon, if start-stop-daemon is ...

glen glen at pld-linux.org
Mon May 19 08:09:22 CEST 2008


Author: glen                         Date: Mon May 19 06:09:22 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- pass --pidfile to daemon, if start-stop-daemon is used, it needs pidfile check

---- Files affected:
SOURCES:
   opensshd.init (1.30 -> 1.31) 

---- Diffs:

================================================================
Index: SOURCES/opensshd.init
diff -u SOURCES/opensshd.init:1.30 SOURCES/opensshd.init:1.31
--- SOURCES/opensshd.init:1.30	Tue Dec 12 18:14:40 2006
+++ SOURCES/opensshd.init	Mon May 19 08:09:17 2008
@@ -61,7 +61,7 @@
 	# Check if the service is already running?
 	if [ ! -f /var/lock/subsys/sshd ]; then
 		msg_starting OpenSSH
-		daemon /usr/sbin/sshd
+		daemon --pidfile /var/run/sshd.pid /usr/sbin/sshd
 		RETVAL=$?
 		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd
 	else
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/opensshd.init?r1=1.30&r2=1.31&f=u



More information about the pld-cvs-commit mailing list