#!/bin/bash ### # chkconfig: 345 90 10 # Description: Start the Weblogic Node Manager ### # Standard functions . /etc/init.d/functions # Init WL_OWNER="oracle" FMW_HOME="/u01/app/oracle/product/osb" WL_HOME="${FMW_HOME}/wlserver_10.3" USER=$(whoami) ############################################################################### # start ############################################################################### start(){ echo "Launching NodeManager" if [ "$USER" != "$WL_OWNER" ] then su - $WL_OWNER -c "nohup $WL_HOME/server/bin/startNodeManager.sh > /tmp/nohup.out &" else nohup $WL_HOME/server/bin/startNodeManager.sh > /tmp/nohup.out & fi } ############################################################################### # main ############################################################################### case "$1" in start) start ;; *) echo $"Usage: $0 {start}" RETVAL=1 esac exit $RETVAL