From 7757306d968f7301d3ffa874e3e9ab6791047d02 Mon Sep 17 00:00:00 2001 From: ssm Date: Tue, 22 Jan 2008 08:28:18 +0000 Subject: [PATCH] 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 --- varnish-cache/debian/varnish.logrotate | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- 2.39.5