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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rc.local in aix or equal file

Status
Not open for further replies.

yordangs

ISP
Sep 7, 2001
91
MX
in linux we have the rc.local file where we put all the programs who we need to start up on the boot . what is the equal file on aix
 
hi,
warning to manage /etc/inittab !
In theory, there are appropriate commands to add,rem...
lines from it, but if you don't know well them, use
vi (make a copy before).

choose a line with xxx:2:wait:xxxxxx
copy it and add it at the bottom.
modify it as:

myrc:2:wait:/etc/rc.myservices

the first field is a label, the last is the command.

Then create /etc/rc.myservices, put your commands inside,
chmod u+x it, try it launching from command line.

If you are sure to have edit well inittab, reboot.

For next times, edit your file, not inittab.


b y e
 
There are commands for modifying the inittab:

mkitab
chitab
lsitab
rmitab

These commands should be used instead of directly modifying /etc/inittab with vi.
 
thanks a lot to aixnag , victorv and DSMARWAY i solve the problem using a file calling it rc.mc and i put all the programs that i need start on boot thanks a lot
 
I use /etc/inittab with vi and add rc.local line to be started.

Balanand
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top