It's all about the answers!

Ask a question

where to add WAS shutdown Script in RHEL 6.2


Sunny Kumar (531588) | asked Mar 19 '18, 6:02 a.m.

 I have Created a Script through which WAS Server will Shutdown

now i wan to add that script somewhere in RHEL so that when any user shutdown the server by end of every day, First WAS shutdown script execute then RHEL server will shutdown.

Please Suggest where to  add that script

2 answers



permanent link
Donald Nong (14.5k614) | answered Mar 20 '18, 2:42 a.m.

I don't know why you need to create a script. If all you want is start and stop your WAS profile when the Linux system starts and stops, you just need to register the WAS profile as a service - same on both Linux and Windows.
https://www.ibm.com/support/knowledgecenter/en/SSAW57_7.0.0/com.ibm.websphere.nd.doc/info/ae/ae/rins_wasservice.html


permanent link
Kenny Smith (302614) | answered Mar 19 '18, 1:38 p.m.

 Are you using WAS classic, or Liberty? 


If Liberty, here is a Linux system.d unit file that will do the startup/shutdown for you.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.