]> err.no Git - varnish/commitdiff
Debian packaging: Only reload varnishlog if it is running.
authorssm <ssm@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 22 Jan 2008 08:28:18 +0000 (08:28 +0000)
committerssm <ssm@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 22 Jan 2008 08:28:18 +0000 (08:28 +0000)
(Debian bug #462029)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2359 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/debian/varnish.logrotate

index 365cf7cf2edf2ac77be1d555b8427851c9a4c1cf..b924702055e3cf0f17995e3f6c11f72c4c38027e 100644 (file)
@@ -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
 }