Re: IPL



Be careful of /etc/rc.* scripts. They are undoubtedly the future of aix
but no one told the IBM developers yet ;)

13:54:09 # du -a /etc/rc.d
8 /etc/rc.d/init.d
8 /etc/rc.d/rc
8 /etc/rc.d/rc2.d/Ksshd
8 /etc/rc.d/rc2.d/Ssshd
40 /etc/rc.d/rc2.d
8 /etc/rc.d/rc3.d
8 /etc/rc.d/rc4.d
8 /etc/rc.d/rc5.d
8 /etc/rc.d/rc6.d
8 /etc/rc.d/rc7.d
8 /etc/rc.d/rc8.d
8 /etc/rc.d/rc9.d
120 /etc/rc.d

Everything of note is in the inittab, and, that means you won't have the
control a fully plumbed rc.d is designed for.

John T. Mills

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
Bob Booth
Sent: Friday, February 29, 2008 11:19 AM
To: aix-l@xxxxxxxxxxxxx
Subject: Re: IPL

On Fri, Feb 29, 2008 at 04:42:06PM -0000, John Dunn wrote:
What is the best way to start a application when the server boots up?

Should I use inittab or is some other method recommended?

AIX version is 5.3

5.3 supports both inittab, or /etc/rc.X scripts. Both allow you to
control
what run level your application will start under.

If using inittab, be careful about using 'respawn' since most
applications
need to be coded a certain way to work this way.

If you want to use the /etc/rc.X method, you can create start/stop
scripts
in those directories, which makes things look more like Solaris, and
Linux.

There is a readme file in /etc/rc.d/samples for more information about
the rc startup stuff.

cheers,

bob



Relevant Pages

  • Re: Startup Scripts
    ... besides using inittab? ... HP uses scripts in the /etc/rc directory but I ... don't see a clean way in AIX? ...
    (comp.unix.aix)
  • Re: IPL
    ... Should I use inittab or is some other method recommended? ... AIX version is 5.3 ... Both allow you to control ... If you want to use the /etc/rc.X method, you can create start/stop scripts ...
    (AIX-L)
  • Re: IPL
    ... The /etc/rc scripts are good. ... That is the newer, more confirming way. ... Should I use inittab or is some other method recommended? ... AIX version is 5.3 ...
    (AIX-L)
  • Re: Startup Scripts
    ... We code the following one time in inittab: ... HP uses scripts in the /etc/rc directory but I ... don't see a clean way in AIX? ...
    (comp.unix.aix)
  • Re: differences between AIX and Unix?
    ... This is despite the script being declared as a bash script in the ... might encounter?Before you used AIX, you were using another brand of Unix. ... All my scripts are bash scripts and I was expecting the default ... Thanks for all the responses and I am sure it is "noclobber" doing it ...
    (comp.unix.questions)