Unix Technical Forum

Restarting services when server is rebooted

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 03:41 AM
Mickykt
 
Posts: n/a
Default Restarting services when server is rebooted

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 03:41 AM
Matt
 
Posts: n/a
Default Re: Restarting services when server is rebooted

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. >>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:22 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com