From 2c571ae52997f88fd9c5cea572e8762d58741675 Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Mon, 4 Oct 2010 14:43:55 +0000 Subject: [PATCH] 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 --- build/rpm/htcacheclean.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/rpm/htcacheclean.init b/build/rpm/htcacheclean.init index 8cc57f7b2d..5309b2af38 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} -- 2.40.0