Contact: jhe@web.de
The UNIX shell script calls exec to load the wrapper
executable image, which might fail. Thus, each exec
call should be extended like shown in the diff below
(doing this for one line in the script, there are 5
other exec calls).
*** ./src/bin/sh.script.in 2004-10-01
05:27:59.000000000 +0200
--- sh.script.in 2005-05-24 12:19:07.559046000 +0200
***************
*** 171,176 ****
--- 171,178 ----
if [ "X$IGNORE_SIGNALS" = "X" ]
then
exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF
wrapper.pidfile=$PIDFILE
+ echo >&2 "Unable to execute $CMDNICE
$WRAPPER_CMD!"
+ exit 1
else
exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF
wrapper.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE
fi
Logged In: YES
user_id=228081
Sorry it took so long, but I was looking at this today. On
my linux system, if there are any problems with the exec
command then a message is displayed and the shell script
stops at that point. You will never get to that code.
Am I missing something?
Cheers,
Leif