![]() |
How to write init script
Hi,
How can I write an init script in order to be able to run weblogic server at startup. My question is related to weblogic version 8.1.4, Is there anyway to start admin server at boot time by using an init script. precisely I mean in need to know how can I write an script and run it as service in run level 3, I'm using redhat os. I'll be very much appreciate if someone can solve my problem. I'm not a programmer though. Regards, Shahrokh |
Code:
#!/bin/bash |
Hi,
Thank you for your reply. If you know weblogic, You would definitely know that there is an script to run weblogic server manually "startWebLogic.sh". Do you think can I somehow use this script or I should follow what you mentioned in your previous message, As I'm very new in linux and weblogic I barely understood what should I do ? So can you explain it somehow that I can understand? I guess that command you mentioned it was for Windows OS, I have linux, I think I should use command where ending is .sh |
All of those commands are for Linux. In that above code, you need to save it in the correct place (your other thread said where and what to save it as) then run 'chmod +x' on it.
You need to replace the 'start_cmd="/usr/bin/java start ./server etc etc"' to 'start_cmd="/path/to/startWebLogic.sh"'. Linux commands don't have a single standard ending like Windows does (Windows uses .exe, normally on Linux, program files have no ending at all). |
Incidentally, there's a nearly-duplicate thread running here...
|
| All times are GMT -5. The time now is 03:05 AM. |