Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert back to what the startup scripts for RedHat were before. The p… #770

Merged
merged 1 commit into from
Jun 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Utilities/Linux/StartupScripts/RedHat/womonitor
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# WebObjects Applications and control them via multiple hosts.
### END INIT INFO

USER=wouser
USER=appserver
NEXT_ROOT="/opt"
export NEXT_ROOT
TIME="[`date +%d.%m.%Y\ %H:%M:%S`]:"
Expand Down Expand Up @@ -46,7 +46,7 @@ fi
# See how we were called.
case "$1" in
status)
WOMONITOR_PID=`ps aux | awk '/WOPort 1086/ && !/awk/ {print $2}'`
WOMONITOR_PID=`ps aux | awk '/WOPort 56789/ && !/awk/ {print $2}'`
if [ "$WOMONITOR_PID" != "" ]; then
echo "$TIME Service is running with PID $WOMONITOR_PID" 2>&1 | tee -a /var/log/womonitor.log
else
Expand All @@ -55,11 +55,11 @@ case "$1" in
;;
start)
echo "$TIME Starting womonitor: " 2>&1 | tee -a /var/log/womonitor.log
su $USER -c -l "$NEXT_ROOT/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor -WOPort 1086 2>&1 | tee -ai /var/log/womonitor.log &"
su $USER -c -l "$NEXT_ROOT/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor -WOPort 56789 2>&1 | tee -ai /var/log/womonitor.log &"
;;
stop)
echo "$TIME Shutting down womonitor: " 2>&1 | tee -a /var/log/womonitor.log
WOMONITOR_PID=`ps aux | awk '/WOPort 1086/ && !/awk/ {print $2}'`
WOMONITOR_PID=`ps aux | awk '/WOPort 56789/ && !/awk/ {print $2}'`
kill $WOMONITOR_PID
;;
restart)
Expand Down
4 changes: 2 additions & 2 deletions Utilities/Linux/StartupScripts/RedHat/wotaskd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# needs to run to be an configurable host via WebObjects Monitor.
### END INIT INFO

USER=wouser
USER=appserver
NEXT_ROOT="/opt"
export NEXT_ROOT
TIME="[`date +%d.%m.%Y\ %H:%M:%S`]:"
Expand Down Expand Up @@ -56,7 +56,7 @@ case "$1" in
;;
start)
echo "$TIME Starting wotaskd: " 2>&1 | tee -a /var/log/wotaskd.log
su $USER -c -l "$NEXT_ROOT/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd -WOPort 1085 2>&1 | tee -a /var/log/wotaskd.log &"
su $USER -c -l "$NEXT_ROOT/Local/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd -WOPort 1085 2>&1 | tee -a /var/log/wotaskd.log &"
;;
stop)
echo "$TIME Shutting down wotaskd" 2>&1 | tee -a /var/log/wotaskd.log
Expand Down