Re: IPL
- From: "Mills, John T" <John.Mills@xxxxxxx>
- Date: Fri, 29 Feb 2008 13:57:44 -0600
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
- References:
- Re: IPL
- From: Bob Booth
- Re: IPL
Relevant Pages
|
|