It's all about the answers!

Ask a question

where to add WAS shutdown Script in RHEL 6.2


Gagan Kumar (417) | 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.4k313) | 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 (267412) | 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.