From a8700af3e005557770f95fdb28366e2a38c53c34 Mon Sep 17 00:00:00 2001 From: ddev24 Date: Thu, 27 Nov 2014 12:32:09 +0100 Subject: [PATCH] set SUBSYS to init.d script name instead of rc?.d link name Variable $SUBSYS used the scriptname from rc?.d directory e.g. 'S96obiee' instead of 'obiee' from init.d. This prevents a OBIEE shutdown on runlevel 0 since the main rc script expects an lock file named after the init.d script. Please notice: The log file names in /var/log will change too by this commit. --- obi/service/init.d/obiee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obi/service/init.d/obiee b/obi/service/init.d/obiee index 634a754..36a5cc3 100755 --- a/obi/service/init.d/obiee +++ b/obi/service/init.d/obiee @@ -43,7 +43,7 @@ OBIS_FINGERPRINT=$FMW_HOME'.*/bin/opmn' # --------------------------------- # SUBSYS must match the script name (eg obiee), as it is used for the process lockfile -SUBSYS=$(basename $0) +SUBSYS=$(basename $(readlink -f $0)) LOCK_FILE='/var/lock/subsys/'$SUBSYS START_LOG=$LOG_PATH/$SUBSYS-start.log STOP_LOG=$LOG_PATH/$SUBSYS-stop.log