Skip to content

Instantly share code, notes, and snippets.

@thewellington
Created October 10, 2013 20:59
Show Gist options
  • Save thewellington/6925593 to your computer and use it in GitHub Desktop.
Save thewellington/6925593 to your computer and use it in GitHub Desktop.
init scripts to start/stop Weblogic and Node Manager
#!/bin/bash
#
# wlsndm startup script for node manager
#
# chkconfig: - 75 15
# description: weblogic
# processname: WLSADMIN
# Source function library
. /etc/rc.d/init.d/functions
start() {
echo -n $"Starting $prog: "
nohup su - cats -c /data/weblogic/Oracle/Middleware/user_projects/domains/catsdomain/bin/startWebLogic.sh > /data/weblogic/Oracle/Middleware/user_projects/domains/catsdomain/servers/weblogic/logs/wlsa.log &
echo OK
}
case "$1" in
start)
start
;;
*)
echo $"Usage: $prog {start}"
exit 1
esac
exit 1
#!/bin/bash
#
# wlsndm startup script for node manager
#
# chkconfig: - 74 15
# description: weblogic
# processname: WLSNDM
# Source function library
. /etc/rc.d/init.d/functions
start() {
echo -n $"Starting $prog: "
nohup su - cats -c /data/weblogic/Oracle/Middleware/wlserver_10.3/server/bin/startNodeManager.sh > /data/weblogic/Oracle/Middleware/wlserver_10.3/server/bin/wlsnd.log &
echo OK
}
case "$1" in
start)
start
;;
*)
echo $"Usage: $prog {start}"
exit 1
esac
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment