Operating System - HP-UX
1847030 Members
4387 Online
110259 Solutions
New Discussion

Re: run control scripts question

 
Sftp script
Occasional Contributor

run control scripts question

Hi,
I am trying to cleanup the inittab entries of a unix box.
The following entries are there in the /etc/inittab
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
l7:7:wait:/etc/rc.d/rc 7
l8:8:wait:/etc/rc.d/rc 8
l9:9:wait:/etc/rc.d/rc 9

At the moment there are entries only in the /etc/rc.d/rc2.d directory all the rest of the rc* directories are empty.
My question: is it ok to remove all the above rc* entries except the "l2:2:wait:/etc/rc.d/rc 2" line.
2 REPLIES 2
Muthukumar_5
Honored Contributor

Re: run control scripts question

What is there in,

# The default runlevel is defined here
id:5:initdefault:

/etc/inittab file? Check run level scripts that is having only 2 in the filename part or any more?

You can comment run level 4 with # without deleting. Bcas it will not be used.

PS: Recommending to move to linux forums.

-Muthu
Easy to suggest when don't know about the problem!
Sftp script
Occasional Contributor

Re: run control scripts question

Muthukumar,
So basically I can comment out the following lines:
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
l7:7:wait:/etc/rc.d/rc 7
l8:8:wait:/etc/rc.d/rc 8
l9:9:wait:/etc/rc.d/rc 9

right?