Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autorunning scripts upon startup

Status
Not open for further replies.

MCubitt

Programmer
Mar 14, 2002
1,081
GB
Hi

Where should I place a call to a script so that it runs when the AIX box is started?

Should the script live in any particular place?

Thanks

There's no need for sarcastic replies, we've not all been this sad for that long!
 
It's been a long time since I've been on an AIX box, and the version you have makes a lot of different.

Look in /etc/init.d or else look for files and directories in /etc named rc*

 
This should probably be in the aix forum, but anywho...

Assuming that you want them to run in run level 2, put them in: /etc/rc.d/rc2.d

The script should have a capital "S". For example, I have an agent that starts up automatically. The script is called /etc/rc.d/rc2.d/Sagent

There are other ways to do this. You could make it a service, tie it to another startup script, or add it to inittab. You get the picture. I prefer this way though. Short and easy.

-Spamly
 
AIX likes to use inittab
man inittab for details


Columb Healy
Living with a seeker after the truth is infinitely preferable to living with one who thinks they've found it.
 
Sorry, I did actually log this in the wrong forum, my mistake.

But thanks for your help and nice to meet you all ;)

Regards


There's no need for sarcastic replies, we've not all been this sad for that long!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top