httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1004264 - /httpd/httpd/trunk/build/rpm/htcacheclean.init
Date Mon, 04 Oct 2010 14:43:55 GMT
Author: minfrin
Date: Mon Oct  4 14:43:55 2010
New Revision: 1004264

URL: http://svn.apache.org/viewvc?rev=1004264&view=rev
Log:
RPM init script: make sure that should we be started by any of the
runlevel symlinks (eg S85htcacheclean), we ignore the first character
and two digits that follow.

Modified:
    httpd/httpd/trunk/build/rpm/htcacheclean.init

Modified: httpd/httpd/trunk/build/rpm/htcacheclean.init
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/build/rpm/htcacheclean.init?rev=1004264&r1=1004263&r2=1004264&view=diff
==============================================================================
--- httpd/httpd/trunk/build/rpm/htcacheclean.init (original)
+++ httpd/httpd/trunk/build/rpm/htcacheclean.init Mon Oct  4 14:43:55 2010
@@ -39,7 +39,7 @@
 
 # What were we called? Multiple instances of the same daemon can be
 # created by creating suitably named symlinks to this startup script
-prog=`basename $0`
+prog=$(basename $0 | sed -e 's/^[SK][0-9][0-9]//')
 
 if [ -f /etc/sysconfig/${prog} ]; then
         . /etc/sysconfig/${prog}



Mime
View raw message