Weblogic starting with the operating system

Today, let’s to configure weblogic services startup, when machines starts.
In some blogs, we can find a bunch of customized scripts that create and set variables to startup the adminservers, nodemanagers and managed server, but, in my case, i just need to start adminserver and nodemanger, when machines start just after an incident.

For this situation, we need that the startup of application do not interrupt the operation system startup.

*The operation system in subject is Red-Hat 6.5

Without create scripts or complex configurations, to obtain this behavior we just need add startup of services in the file /etc/rc.local.

su - oracle -c "nohup /oracle/domains/domain_name/bin/startWebLogic.sh > /oracle/logs/Adminserver.log 2>&1 &"
su - oracle -c "nohup /oracle/binaries/wlserver_10.3/server/bin/startNodeManager.sh > /oracle/logs/Nodemanager.log 2>&1 &"

When you uses “su – oracle -c” the operation system makes a call to oracle user. Using rc.local, the last OS execution file after startup, you guarantee to not interrupt system startup.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s