Sponsored Content
Full Discussion: inittab entry does not works
Operating Systems Solaris inittab entry does not works Post 302360959 by TonyFullerMalv on Sunday 11th of October 2009 06:03:52 PM
Old 10-11-2009
The following says hat a Solaris 10 inittab file should no longer be editted directly:
The /etc/inittab File
I suggest that your test line should write to a log file somewhere, e.g.:
Code:
echo "My initab entry is working" >> /var/tmp/test.log

I would write a new SMF service instead of putting an entry in inittab, take a look at:
BigAdmin Feature Article: Using Service Management Facility (SMF) in the Solaris 10 OS: A Quick Example
to see how.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. Red Hat

Adding or deleting an entry in /etc/inittab without using vi editrors or any editor.

Hi masters Is there any way to edit or delete an entry in inittab file without using vi or any editors? We can use commands instead or any shell script .. If any one can help deeply appreciated Thanks a lot sai (3 Replies)
Discussion started by: saidiya
3 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. 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

7. 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

8. 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

9. How to Post in the The UNIX and Linux Forums

Help me, write a bash script to delete parent entry with all their child entry in LDAP UNIX server

Hi All, Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries. example: Parent is : ---------- dn: email=yogesh.kumar@wipro.com, o=wipro, o=in child is: ---------- dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com,... (1 Reply)
Discussion started by: Chand
1 Replies

10. 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
inittab(4)						     Kernel Interfaces Manual							inittab(4)

NAME
inittab - Controls the initialization process SYNOPSIS
/etc/inittab DESCRIPTION
The inittab file provides the init program with instructions for creating and running initialization processes. The init program reads the inittab file each time init is invoked. The file typically contains instructions for the default initialization, the creation and control of processes at each run level, and the getty command, which controls the activation of terminal lines. 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 Specifies a fourteen character field used to uniquely identify an object. Specifies a twenty character field that defines the run levels in which the object is to be processed. Runlevel corresponds to a configuration of processes in a system. Each process spawned by the init command is assigned one or more run levels in which it is allowed to exist. The run levels are as follows: Specifies the halt state. Specifies multiuser state without network services. Specifies multiuser state with network services. Specifies single-user state. You can define multiple run levels for a process by specifying more than one run level character in any combination. Specifies a twenty char- acter field that tells init how to treat the specified process. init recognizes the following Action values: Specifies that if the process does not exist or if it dies, init starts it. If the process exists, init continues to process the inittab file. Specifies that if init enters a run level that matches the run level specified in the inittab file entry, it starts the process and waits for its termination. As long as init continues in this run level, it does not act on subsequent reads of the entry in the inittab file. Specifies that if init enters a run level that matches the run level specified in the inittab file, it starts the process and does not wait for its termination. When the process stops, init does not restart it. If init enters a new run level where the process is still running from a previous run- level change, init does not restart the process. Specifies that when init first executes and reads the inittab file, it processes this entry. The init program starts the process and does not wait for its termination. When the process stops, init does not restart it. The run level specified in this inittab file entry should be the default run level, or it must match the run level in which init operates at boot time. Specifies that when init first executes and reads the inittab file, it processes this inittab file entry. The init program starts the process, waits for its termination and, when it dies, does not restart the process. (This value exists only for SVID3/SVR4 com- patibility.) Specifies that if init receives the SIGPWR power fail signal, it executes the process associated with this line. (This value exists only for SVID3/SVR4 compatibility.) Specifies that if init receives the SIGPWR power fail signal, it executes the process associ- ated with this line and waits until the process terminates before continuing processing the inittab file. Specifies that if the process associated with this line is currently running, init sends the warning signal SIGTERM and waits 20 seconds before sending the kill signal SIGKILL. If the process does not existent, init ignores the inittab entry. Specifies that a line with this action is processed when init is originally invoked. The init program uses this line to determine the run level to enter originally. It determines this by taking the highest run level specified in the run level field and using that as its initial state. If the run level field is empty, this is inter- preted as 0s23, causing init to enter run level 3. If init does not find an initdefault entry in the inittab file, it requests an initial run level from the operator. Specifies that entries of this type are executed before init tries to access the console. This inittab file entry should be used only to initialize devices on which init could attempt to request a run level. Specifies a 1024 character field that contains the sh command to be executed. The command is prefixed with exec. Any legitimate sh syntax can appear in the command field. Com- ments can be inserted be specifying a number sign (#). The line continuation character can be placed at the end of a line. EXAMPLES
The following is an example of an inittab file entry for a terminal line: tty01:23:respawn:/usr/sbin/getty /dev/tty08 9600 vt100 FILES
Specifies the command that initializes and controls terminal lines. RELATED INFORMATION
Commands: init(8), getty(8) Functions: kill(2) delim off inittab(4)
All times are GMT -4. The time now is 12:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy