[D-community-commits] r236 - trunk/fai-config-dir/files/etc/logrotate.d/apache2

holger at alioth.debian.org holger at alioth.debian.org
Sun Jan 20 19:38:13 UTC 2008


Author: holger
Date: 2008-01-20 19:38:13 +0000 (Sun, 20 Jan 2008)
New Revision: 236

Modified:
   trunk/fai-config-dir/files/etc/logrotate.d/apache2/WEBSERVER
Log:
stop apache2 before running awstats and rotating the logs

Modified: trunk/fai-config-dir/files/etc/logrotate.d/apache2/WEBSERVER
===================================================================
--- trunk/fai-config-dir/files/etc/logrotate.d/apache2/WEBSERVER	2008-01-20 19:35:28 UTC (rev 235)
+++ trunk/fai-config-dir/files/etc/logrotate.d/apache2/WEBSERVER	2008-01-20 19:38:13 UTC (rev 236)
@@ -8,11 +8,10 @@
 	create 640 root adm
 	sharedscripts
 	prerotate
+		/etc/init.d/apache2 stop > /dev/null
 		/usr/lib/cgi-bin/awstats.pl -config=debian-community.org -update
 	endscript
 	postrotate
-		if [ -f /var/run/apache2.pid ]; then
-			/etc/init.d/apache2 restart > /dev/null
-		fi
+		/etc/init.d/apache2 start > /dev/null
 	endscript
 }




More information about the D-community-commits mailing list