SOURCES: awffull.cron - run it with lowest priority

blues blues at pld-linux.org
Tue Dec 12 14:10:17 CET 2006


Author: blues                        Date: Tue Dec 12 13:10:17 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- run it with lowest priority

---- Files affected:
SOURCES:
   awffull.cron (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SOURCES/awffull.cron
diff -u SOURCES/awffull.cron:1.7 SOURCES/awffull.cron:1.8
--- SOURCES/awffull.cron:1.7	Sun Oct  1 16:40:16 2006
+++ SOURCES/awffull.cron	Tue Dec 12 14:10:11 2006
@@ -29,11 +29,11 @@
 			TMPCONFIG=`mktemp -q /var/lib/dnshistory/awffull_config.XXXXXX`
 			LOGFILE=`grep ^LogFile ${singleconfig} | awk '{ print $2;}'`
 			grep -v ^LogFile ${singleconfig} > ${TMPCONFIG}
-			dnshistory -f ${LOGFILE}
-			dnshistory -T -f ${LOGFILE} | awffull ${AWFFULL_OPTS} -c ${TMPCONFIG} - ;
+			nice -n 19 dnshistory -f ${LOGFILE}
+			nice -n 19 dnshistory -T -f ${LOGFILE} | awffull ${AWFFULL_OPTS} -c ${TMPCONFIG} - ;
 			rm -f ${TMPCONFIG}
 		else
-			awffull ${AWFFULL_OPTS} -c ${singleconfig};
+			nice -n 19 awffull ${AWFFULL_OPTS} -c ${singleconfig};
 		fi
 	done
 fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/awffull.cron?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list