1 diff --git a/bin/nexus b/bin/nexus
2 index d06cb44..37c606e 100755
5 @@ -88,7 +88,7 @@ create_db_entry() {
7 db_new_file=${db_file}_new
8 if [ -f "$db_file" ]; then
9 - awk '$2 != "'"$test_dir"'" {print $0}' $db_file > $db_new_file
10 + awk '$2 != "'"$test_dir"'" {print $scriptname}' $db_file > $db_new_file
12 mv "$db_new_file" "$db_file"
14 @@ -246,7 +246,7 @@ read_vmoptions() {
18 - jar_file=`echo "$1" | awk '{ print substr($0,1,length-5) }'`
19 + jar_file=`echo "$1" | awk '{ print substr($scriptname,1,length-5) }'`
20 bin/unpack200 -r "$1" "$jar_file"
23 @@ -377,9 +377,14 @@ fi
27 -progname=`basename "$0"`
28 -linkdir=`dirname "$0"`
31 +if [ ! -z "$ALTERNATIVE_NAME" ]; then
32 + scriptname=`dirname "$0"`"/"$ALTERNATIVE_NAME
35 +progname=`basename "$scriptname"`
36 +linkdir=`dirname "$scriptname"`
40 @@ -590,7 +595,7 @@ return_code=$?
44 - echo "Usage: $0 {start|stop|run|run-redirect|status|restart|force-reload}"
45 + echo "Usage: $scriptname {start|stop|run|run-redirect|status|restart|force-reload}"