cancel
Showing results for 
Search instead for 
Did you mean: 

Startup File

Qcheck
Super Advisor

Startup File

Hello Gurus,

Can I put the following line in /etc/inittab file, to execute during the server reboot, on one of my Tru64 node?

rclocal:3:wait:/etc/rc.local

Where, I have /etc/rc.local file which have files to execute?

Thanks
5 REPLIES
Ivan Ferreira
Honored Contributor

Re: Startup File

I think that probably it will work. You can also:

Create an init script and put it on /sbin/init.d

Add the commands to /etc/rc.inet
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Venkatesh BL
Honored Contributor

Re: Startup File

Yes, you can confirm with manpage of 'inittab'...

Each line in the inittab file contains an entry that has four fields; each field is separated by a colon. There is no limit to the number of entries in the inittab file. The entry syntax is as follows:

Identifier:Runlevel:Action:Command
vjta
Regular Advisor

Re: Startup File

yes it will work
Vijeta Bhedi
Kapil Jha
Honored Contributor

Re: Startup File

your option (rc.local)is better than probably putting various lines in inittab file.
Some file looks good when they are small ;).

Anyways both method will work.
BR,
Kapil
I am in this small bowl, I wane see the real world......
Pieter 't Hart
Honored Contributor

Re: Startup File

the normal way to add startup scripts is to place it in /sbin/init.d
(It's nice if it has start/stop/restart sections)
and add a link (S for start and K for stop) in /sbin/rc.d ; depending in wich runlevel you want it started in.

edditing inittab may be overwritten when upgrading to an newer version (not very likely when V5.1b)