Hi Michael,
The james script is automatically generated by the maven build and we
can't apply your patch as such...
Would you look at the maven build process to try to find a solution?
Thx, Eric
On 08/03/2012 08:12 AM, Michael Saladin wrote:
I am using 3.0beta4, and the file where this appears is the "james"
shell script inside the bin directory.
Regards
Michael
On 08/02/12 18:31, Ioan Eugen Stan wrote:
Hello Michael,
Which version of James are you using, 2.3 or 3.0beta4?
Regards,
2012/8/2 Michael Saladin<[email protected]>:
Hi all,
ps -ef is truncated on Solaris to consist of maximal 80 characters, e.g.
see:
http://stackoverflow.com/questions/4892516/getting-around-truncated-ps
Therefore, the james shell script fails on Solaris when james is
located in
a directory with a too long path, I needed to adapt the james.sh file
like
this:
Instead of this:
-----------------------------------------------
if [ "$DIST_OS" = "macosx" ]; then
pidtest=`$PSEXE_COMPLEX -p $pid -o command -ww | grep
"$WRAPPER_CMD" |
tail -1`
else
pidtest=`$PSEXE_COMPLEX -p $pid -o args | grep "$WRAPPER_CMD" |
tail -1`
fi
-----------------------------------------------
I had to do this:
-----------------------------------------------
if [ "$DIST_OS" = "macosx" ]; then
pidtest=`$PSEXE_COMPLEX -p $pid -o command -ww | grep
"$WRAPPER_CMD" |
tail -1`
elif [ "$DIST_OS" = "solaris" ]; then
pidtest=`$PSEXE_COMPLEX awwx $pid | grep "$WRAPPER_CMD" | tail -1`
else
pidtest=`$PSEXE_COMPLEX -p $pid -o args | grep "$WRAPPER_CMD" |
tail -1`
fi
-----------------------------------------------
whereas I defined $PSEXE_COMPLEX to be $PSEXE, and in case of Solaris
it is
"/usr/ucb/ps". This works fine for me. Any chance to integrate this
into the
final product?
Best regards
Michael
here is the diff:
saladin@adnws194:~/projects/adnjames/etc/CorrectedJamesScript> diff
james
/share/java/jpository/apache/james/3.0-beta4/bin/james
148d147
< PSEXE_COMPLEX=$PSEXE
155d153
< PSEXE_COMPLEX="/usr/ucb/ps"
373,377c371,373
< pidtest=`$PSEXE_COMPLEX -p $pid -o command -ww |
grep
"$WRAPPER_CMD" | tail -1`
< elif [ "$DIST_OS" = "solaris" ]; then
< pidtest=`$PSEXE_COMPLEX awwx $pid | grep
"$WRAPPER_CMD"
| tail -1`
< else
< pidtest=`$PSEXE_COMPLEX -p $pid -o args | grep
"$WRAPPER_CMD" | tail -1`
---
pidtest=`$PSEXE -p $pid -o command -ww | grep
"$WRAPPER_CMD" | tail -1`
else
pidtest=`$PSEXE -p $pid -o args | grep
"$WRAPPER_CMD" |
tail -1`
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
eric | http://about.echarles.net | @echarles
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]