|
From: sdwr98 <sco...@fm...> - 2008-04-13 21:26:09
|
Hi all, I've recently started using the Java Service Wrapper on Solaris 10, and I have come across the same issue that http://sourceforge.net/tracker/index.php?func=detail&aid=1664303&group_id=39428&atid=425187 this issue reported back in 2007, namely that on Solaris, when the path to the service wrapper is longer than 80 characters, the pidtest fails. I've identified a workaround, in the pidtest function: if [ "$DIST_OS" = "solaris" ] then PSEXE=/usr/ucb/ps pidtest=`$PSEXE ww $pid | grep "$WRAPPER_CMD" | tail -1` else pidtest=`$PSEXE -p $pid -o args | grep "$WRAPPER_CMD" | tail -1` fi On Solaris, /usr/ucb/ps is the BSD variant of ps and is capable of providing the long output we need. Is there any chance this could get added to the next release? Thanks! Scott -- View this message in context: http://www.nabble.com/pidtest-problem-on-Solaris-with-long-paths-tp16588411p16588411.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |