diff options
Diffstat (limited to 'www/webobjects/files/patch-ab')
-rw-r--r-- | www/webobjects/files/patch-ab | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/www/webobjects/files/patch-ab b/www/webobjects/files/patch-ab new file mode 100644 index 000000000000..8c113874f629 --- /dev/null +++ b/www/webobjects/files/patch-ab @@ -0,0 +1,18 @@ +--- System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/javawoservice.sh.orig Sat Oct 1 04:00:34 2005 ++++ System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/javawoservice.sh Mon Apr 16 14:26:41 2007 +@@ -255,7 +255,14 @@ + echo "javawoservice.sh: \`$APP_NAME' is starting up ..." + + # so run the app already, sheesh +- $APP_PATH 2>&1 >/dev/null $APP_ARGS ++ PORT=`echo ${APP_ARGS} | sed -e 's|^.*-WOPort \([0-9]*\).*|\1|'` ++ touch /var/log/webobjects/${APP_NAME}-${PORT}.log 2>&1 ++ if [ $? = 0 ]; then ++ $APP_PATH $APP_ARGS >>/var/log/webobjects/${APP_NAME}-${PORT}.log 2>&1 ++ else ++ $APP_PATH $APP_ARGS 2>&1 >/dev/null ++ fi ++ + EXIT_CODE="$?" + + echo "javawoservice.sh: \`$APP_NAME' exited." |