This is a discussion on Restarting services when server is rebooted within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi all, I would like some deeper understanding on this area.I am working on a pserices aix 5L server.I ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi all, I would like some deeper understanding on this area.I am working on a pserices aix 5L server.I installed oracle,Websphere and other products,all went fine. But once I restart the server I have to start each deamon(service) manually. I learned we can add a script in the rc.d to automatically start the processes. I have a script called startServer.sh which I run to start WebSphere. I go the the Websphere_home/bin and run the command. How can I make this auotomated.PLease advice what I plan to do is correct cd /Web_home/bin ../startServer server1 I will add this to a script.Where should I place it and as what name should I place it in rc2.d if I chose the start level to be 2. Please advice on this. THanks and Regards micky |
| ||||
| Mickykt wrote: > Hi all, > > I would like some deeper understanding on this area.I am working on a > pserices aix 5L server.I installed oracle,Websphere and other > products,all went fine. > > But once I restart the server I have to start each deamon(service) > manually. > I learned we can add a script in the rc.d to automatically start the > processes. > > I have a script called startServer.sh which I run to start WebSphere. > I go the the Websphere_home/bin and run the command. > How can I make this auotomated.PLease advice what I plan to do is > correct > > cd /Web_home/bin > ./startServer server1 > > I will add this to a script.Where should I place it and as what name > should I place it in rc2.d if I chose the start level to be 2. > > Please advice on this. > > THanks and Regards > micky rc.d is one method. Adding a line to /etc/inittab to auto run another file (most call it rc.local) is another method. If it is a single line, running it from inittab directly. The thing to keep in mind is that the inittab (and crontab) are environmentless executions. A start script that works commandline may not work via these methods. Test first, add critical environment variables, or source the necessary environment files. Adding the set command in your script will allow you to find the env vars of this script each time it is run. So you can see what the vars were if run via cron, init, rc, shell, etc. This can be very enlightening. - Matt -- __________________________________________________ _____________________ Matthew Landt - AIX and HACMP Cert. Specialist - landt@austin.ibm.com IBM High Speed Interconnect - Fibre Channel I/O Dev/Test/Support << Comments, views, and opinions are mine alone, not IBM's. >> |