doubt in /etc/inittab script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting doubt in /etc/inittab script
# 1  
Old 11-11-2005
doubt in /etc/inittab script

Hi..

When i was just looking throught /etc/inittab file..
i had stuck with some problems that i dont known in shell scripts

Quote:
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
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

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
Here how the lablel like
si
ca
lo
l1

etc works..
do scripts proivide any label features..
please help...

thanks in advance
esham
# 2  
Old 11-11-2005
inittab is not a script. It is a configuration file. It has fields separated by colons just like /etc/passwd. Do a "man inittab". You should have a man page. Be very careful with this file.
# 3  
Old 11-12-2005
Thanks very much...

esham
# 4  
Old 04-17-2009
Inittab file not found

Hello All,

I am taking a Linux Administration course. I was setting up my server for almost 3 months - installing a lot of applications requiered by my class. Last night, when I was accessing the server I got the message "inittab not found"

This is a CentOS-5.0 Server. During the booting process I was able to reboot as a single mode and access the limited shell; In my root / I do not see the etc folder which is where the inittab; the boot folder is empty; however, there is a bootbackup folder with the etc folder on it. If I try to access the inittab, it says that is read only and does not allow me to vi into it. I tried to mounted and it said that file could not be recreated and was imposible its restoration.

I need to turn in my project next week; the server must be up and running. I really need help to make this work... Please help me out...

Thanks a lot...

Sorry! I am new to this forum.

Emelanio
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script calling by inittab

Hi to all , i wrote a small script and i add it to inittab to start the script during Startup. The script works fine , if i call it from the prompt but if it is call from inittab it is runnng too but it does not recognize system variable like USER , LOGNAME. Since i running out of ideas i... (12 Replies)
Discussion started by: Nadielosabra
12 Replies

2. Linux

How to add a entry in inittab?

Hi All, I am booting by Linux box with the run level 3 and it gets booted successfully. I want to execute a script once the system is up and running in the run level 3. I was trying to add a entry to /etc/inittab to execute my script once the system is up. I have added the below... (5 Replies)
Discussion started by: kalpeer
5 Replies

3. UNIX for Dummies Questions & Answers

Inittab configuration

I am installing BusyBox on a device that does not have keyboard or serial connection, so I log into the system with SSH. I am in doubt about what to put in the inittab file. This is the content of the file: ::sysinit:/etc/init.d/rcS ::respawn:/bin/login ::shutdown:/sbin/swapoff -a... (1 Reply)
Discussion started by: richard78
1 Replies

4. UNIX for Dummies Questions & Answers

What breaks inittab

Today there was a situation where processes running from inittab was broken. Can someone help me understand, how to find out, who might have stopped those processes? Or how does it get broken? G (2 Replies)
Discussion started by: ggayathri
2 Replies

5. UNIX for Advanced & Expert Users

Does inittab needs system restart?

Hi currently my linux instance is running in runlevel 3 ( someone has set the default to 3) i have to change it to runlevel 5 . my question 1) does the editing of /etc/inittab needs system restart to enter runlevel 5. 2) how can we avoid system restart because if some users are... (3 Replies)
Discussion started by: rakeshkumar
3 Replies

6. Solaris

inittab entry does not works

Hi, I have a solaris 10 server,which has a process running that communicates with other system.I have made following entry in the inittab file. PM15:s12345:respawn:/ncm/bin/communicator PM15 : Unique process ID s12345 : run levels respawn : if anytime the process... (2 Replies)
Discussion started by: asalman.qazi
2 Replies

7. Shell Programming and Scripting

csh script doubt

Hi, I need to execute output one command in csh. Eg: #!/bin/csh set smal = "set count = 1" grep "Tot" in_file | sed "s/Tot/$smal/g" In the above script, i have set the smal variale as "set count = 1". My desired output like: $echo count should show as 1. (1 Reply)
Discussion started by: vasanth.vadalur
1 Replies

8. Solaris

inittab in Solaris 10

Hi, In Solaris 9 and below release we are using the rc script in inittab. I don't have much idea abt inittab in Solaris. In Solris 9 and below: We use rc3 script to start up the server. And we run database script before the rc3. os:23:respawn:/etc/init.d/database start >/dev/null 2>&1... (7 Replies)
Discussion started by: kalpeer
7 Replies

9. UNIX for Dummies Questions & Answers

inittab solaris

Hi! Is it possible to add more ttys in Solaris, like with inittab in Linux? I want to switch between the ttys with Alt F1+F2+F3 .... like Linux does. How can i do this? (1 Reply)
Discussion started by: donald1111
1 Replies

10. UNIX for Dummies Questions & Answers

I got a corrupt /etc/inittab file....what next?

Hi guys, For some reason a client has given us a Sun Netra T1 with Solaris 8 to administer for them. That's always good business. However, the other day we rebooted the machine and to our amazement, after doing the preliminary hardware tests, we got an error messgae saying that /etc/inittab was... (3 Replies)
Discussion started by: Ivo
3 Replies
Login or Register to Ask a Question