[3.0] 89d2b2b Only strip out -p to status/killproc for old fedora/RHEL

Tollef Fog Heen tfheen at varnish-cache.org
Wed Aug 17 11:25:53 CEST 2011


commit 89d2b2baefa0c2b27b688a301e13b5f62aa5937a
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Mon Aug 1 14:53:25 2011 +0200

    Only strip out -p to status/killproc for old fedora/RHEL
    
    It seems most RPM-based distros has the -p switch to killproc and
    status those days, so only blacklist the ones we know about that does
    not have it.
    
    Fixes: #969

diff --git a/redhat/varnish.spec b/redhat/varnish.spec
index ae1b87e..415f031 100644
--- a/redhat/varnish.spec
+++ b/redhat/varnish.spec
@@ -110,7 +110,7 @@ EOF
 
 tail -n +11 etc/default.vcl >> redhat/default.vcl
 
-%if 0%{?fedora}%{?rhel} == 0 || 0%{?rhel} <= 4 && 0%{?fedora} <= 8
+%if 0%{?fedora}%{?rhel} != 0 && 0%{?rhel} <= 4 && 0%{?fedora} <= 8
 	# Old style daemon function
 	sed -i 's,--pidfile \$pidfile,,g;
 		s,status -p \$pidfile,status,g;



More information about the varnish-commit mailing list