From 9ef1e36fd4ae27973ffbad5fd5a0a2bdcc2c9999 Mon Sep 17 00:00:00 2001
From: Marcel Huber <marcel.huber@hsr.ch>
Date: Fri, 16 May 2008 11:01:24 +0000
Subject: [PATCH] * changed to using absolute binary filename when starting
 wdserver

---
 startwds.sh | 6 +++---
 sysfuncs.sh | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/startwds.sh b/startwds.sh
index 70773a7..4e1a079 100755
--- a/startwds.sh
+++ b/startwds.sh
@@ -193,12 +193,12 @@ printf "%s %s: " "`date +%Y%m%d%H%M%S`" "${MYNAME}" >> ${ServerMsgLog}
 printf "setting handles to %s and coresize to %s blocks\n" "`echo ${cfg_handles}| cut -d ' ' -f 2`" "`echo ${cfg_coresize} | cut -d ' ' -f 2`" | tee -a ${ServerMsgLog}
 if [ $cfg_dbgctl -eq 0 ]; then
 	printf "%s %s: " "`date +%Y%m%d%H%M%S`" "${MYNAME}" >> ${ServerMsgLog}
-	printf "starting %s [%s] with options [%s] on [%s]\n" "${SERVERNAME}" "$WDS_BIN" "$cfg_srvopts" "${HOSTNAME}" | tee -a ${ServerMsgLog} ${ServerErrLog};
+	printf "starting %s [%s] with options [%s] on [%s]\n" "${SERVERNAME}" "$WDS_BINABS" "$cfg_srvopts" "${HOSTNAME}" | tee -a ${ServerMsgLog} ${ServerErrLog};
 	# start the server process
-	$WDS_BIN $cfg_srvopts 2>> ${ServerErrLog} >> ${ServerMsgLog} &
+	$WDS_BINABS $cfg_srvopts 2>> ${ServerErrLog} >> ${ServerMsgLog} &
 else
 	printf "%s %s: " "`date +%Y%m%d%H%M%S`" "${MYNAME}" >> ${ServerMsgLog}
-	printf "starting %s [%s] using GDB in batch mode with options [%s] on [%s]\n" "${SERVERNAME}" "$WDS_BIN" "$cfg_srvopts" "${HOSTNAME}" | tee -a ${ServerMsgLog} ${ServerErrLog};
+	printf "starting %s [%s] using GDB in batch mode with options [%s] on [%s]\n" "${SERVERNAME}" "$WDS_BINABS" "$cfg_srvopts" "${HOSTNAME}" | tee -a ${ServerMsgLog} ${ServerErrLog};
 	gdb --batch --command ${cfg_gdbcommands} 2>> ${ServerErrLog} >> ${ServerMsgLog} &
 fi
 # this on seems to be simpler to grasp the PID than using ps
diff --git a/sysfuncs.sh b/sysfuncs.sh
index 81fcfe4..2bedfdf 100755
--- a/sysfuncs.sh
+++ b/sysfuncs.sh
@@ -559,7 +559,7 @@ cat > ${outputfile} <<-EOF
 	set environment LOGDIR=${LOGDIR}
 	set environment PID_FILE=${PID_FILE}
 	set auto-solib-add 1
-	file ${WDS_BIN}
+	file ${WDS_BINABS}
 	set args ${locsrvopts}
 EOF
 	if [ $locRunAsServer -eq 1 ]; then
-- 
GitLab