r2359 - trunk/varnish-cache/debian

ssm at projects.linpro.no ssm at projects.linpro.no
Tue Jan 22 09:28:18 CET 2008


Author: ssm
Date: 2008-01-22 09:28:18 +0100 (Tue, 22 Jan 2008)
New Revision: 2359

Modified:
   trunk/varnish-cache/debian/varnish.logrotate
Log:
Debian packaging: Only reload varnishlog if it is running.
(Debian bug #462029)


Modified: trunk/varnish-cache/debian/varnish.logrotate
===================================================================
--- trunk/varnish-cache/debian/varnish.logrotate	2008-01-21 19:08:01 UTC (rev 2358)
+++ trunk/varnish-cache/debian/varnish.logrotate	2008-01-22 08:28:18 UTC (rev 2359)
@@ -4,6 +4,8 @@
   compress
   delaycompress
   postrotate
-    /usr/sbin/invoke-rc.d varnishlog reload > /dev/null
+    if /usr/bin/pgrep -P 1 varnishlog >/dev/null; then
+      /usr/sbin/invoke-rc.d varnishlog reload > /dev/null
+    fi
   endscript
 }




More information about the varnish-commit mailing list