JSW script should return the exit code when used with RUN_AS_USER.
So instead of:
su -m $RUN_AS_USER -c "\"$REALPATH\" $2"
...
exit 0
It should be:
su -m $RUN_AS_USER -c "\"$REALPATH\" $2"
RUN_AS_USER_EXIT_CODE=$?
..
exit $RUN_AS_USER_EXIT_CODE
Etienne,
thank you for your post.
I will go over the script and include the suggested fix.
cheers,
christian