#<%= @shell %> # ************************************************************************* echo "Starting the Weblogic NodeManager...." echo "Checking if the Weblogic NodeManager is already started...." <% if @jsseEnabled == true %> export JAVA_OPTIONS='-Dweblogic.ssl.JSSEEnabled=true -Dweblogic.security.SSL.enableJSSE=true' <% else %> export JAVA_OPTIONS='-Dweblogic.ssl.JSSEEnabled=false -Dweblogic.security.SSL.enableJSSE=false' <% end %> unamestr=`uname` if [[ "$unamestr" == 'SunOS' ]]; then checkStmt='/usr/ucb/ps wwxa' else checkStmt='/bin/ps -eo pid,cmd' fi pid=`${checkStmt} | /bin/grep -i nodemanager.javahome | /bin/grep -v grep | awk '{print $1}'` if [ ${pid} ] then echo "The NodeManager is already running.. NodeManager NOT started again...." else echo "The NodeManager is not running yet.. Starting NodeManager now...." sleep 3 <%= @nodeMgrPath %>/startNodeManager.sh & sleep 5 pid=`${checkStmt} | /bin/grep -i nodemanager.javahome | /bin/grep -v grep | awk '{print $1}'` if [ ${pid} ] then echo "NodeManager is started with pid : $pid...." else echo "Error while starting NodeManager...." fi fi