]> granicus.if.org Git - apache/commitdiff
RPM init script: make sure that should we be started by any of the
authorGraham Leggett <minfrin@apache.org>
Mon, 4 Oct 2010 14:43:55 +0000 (14:43 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 4 Oct 2010 14:43:55 +0000 (14:43 +0000)
runlevel symlinks (eg S85htcacheclean), we ignore the first character
and two digits that follow.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1004264 13f79535-47bb-0310-9956-ffa450edef68

build/rpm/htcacheclean.init

index 8cc57f7b2de2af32d7db238729b1e51bc28952e0..5309b2af3887da7ea9a26e8dacb880365353a14d 100755 (executable)
@@ -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}