From: ssm Date: Tue, 22 Jan 2008 08:28:18 +0000 (+0000) Subject: Debian packaging: Only reload varnishlog if it is running. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7757306d968f7301d3ffa874e3e9ab6791047d02;p=varnish Debian packaging: Only reload varnishlog if it is running. (Debian bug #462029) git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2359 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/debian/varnish.logrotate b/varnish-cache/debian/varnish.logrotate index 365cf7cf..b9247020 100644 --- a/varnish-cache/debian/varnish.logrotate +++ b/varnish-cache/debian/varnish.logrotate @@ -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 }