SOURCES: named.init - pidfiles

arekm arekm at pld-linux.org
Wed Jan 7 21:36:03 CET 2009


Author: arekm                        Date: Wed Jan  7 20:36:03 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- pidfiles

---- Files affected:
SOURCES:
   named.init (1.36 -> 1.37) 

---- Diffs:

================================================================
Index: SOURCES/named.init
diff -u SOURCES/named.init:1.36 SOURCES/named.init:1.37
--- SOURCES/named.init:1.36	Tue Jan  8 15:45:26 2008
+++ SOURCES/named.init	Wed Jan  7 21:35:57 2009
@@ -44,7 +44,7 @@
 		[ -f /etc/localtime ] && cp -a /etc/localtime $CHROOT_TO_DIR/etc/localtime
 		touch $CHROOT_TO_DIR/named.log && \
 			chown named:named $CHROOT_TO_DIR/named.log
-	 	daemon named -u named -t $CHROOT_TO_DIR \
+	 	daemon --pidfile /var/lib/named/named.pid named -u named -t $CHROOT_TO_DIR \
 			-c /etc/named.conf $NAMED_OPT </dev/null
 		RETVAL=$?
 		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/named
@@ -56,7 +56,7 @@
 stop() {
 	if [ -f /var/lock/subsys/named ]; then
 		msg_stopping "Named"
-		killproc named
+		killproc --pidfile /var/lib/named/named.pid named
 		rm -f /var/lock/subsys/named >/dev/null 2>&1
 	else
 		msg_not_running "Named"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/named.init?r1=1.36&r2=1.37&f=u



More information about the pld-cvs-commit mailing list