From: Graham Leggett Date: Mon, 4 Oct 2010 14:43:55 +0000 (+0000) Subject: RPM init script: make sure that should we be started by any of the X-Git-Tag: 2.3.9~360 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c571ae52997f88fd9c5cea572e8762d58741675;p=thirdparty%2Fapache%2Fhttpd.git 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1004264 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/rpm/htcacheclean.init b/build/rpm/htcacheclean.init index 8cc57f7b2de..5309b2af388 100755 --- a/build/rpm/htcacheclean.init +++ b/build/rpm/htcacheclean.init @@ -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}