SOURCES: named.init - make use of CHROOT_TO_DIR

gotar gotar at pld-linux.org
Thu May 10 10:34:46 CEST 2007


Author: gotar                        Date: Thu May 10 08:34:46 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- make use of CHROOT_TO_DIR

---- Files affected:
SOURCES:
   named.init (1.32 -> 1.33) 

---- Diffs:

================================================================
Index: SOURCES/named.init
diff -u SOURCES/named.init:1.32 SOURCES/named.init:1.33
--- SOURCES/named.init:1.32	Mon Apr  9 19:42:33 2007
+++ SOURCES/named.init	Thu May 10 10:34:40 2007
@@ -36,10 +36,10 @@
 	# Check if the service is already running?
 	if [ ! -f /var/lock/subsys/named ]; then
 		msg_starting "Named"
-		[ -f /etc/localtime ] && cp -a /etc/localtime /var/lib/named/etc/localtime
-		touch /var/lib/named/named.log && \
-			chown named:named /var/lib/named/named.log
-	 	daemon named -u named -t /var/lib/named \
+		[ -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 \
 			-c /etc/named.conf -n ${NUM_CPUS:-1} </dev/null
 		RETVAL=$?
 		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/named
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/named.init?r1=1.32&r2=1.33&f=u



More information about the pld-cvs-commit mailing list