inittab entry does not works


 
Thread Tools Search this Thread
Operating Systems Solaris inittab entry does not works
# 1  
Old 10-11-2009
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.

Code:
 
PM15:s12345:respawn:/ncm/bin/communicator
 
PM15      :     Unique process ID
s12345   :    run levels
respawn : if anytime the process dies , respawn it
/ncm/bin/communicator : the process that needs to be restarted.

the above entry does not works.

i did the following things after making the entry

1) reboot the system
2)init q
3)init Q
4)telinitq

i thought of testing the entry with a simple command and made the following entry in the inittab file

Code:
 
PM15:s12345:respawn:echo "My initab entry is working"

this also had no effect

there may be two reasons for the above problem

1) I am making a syntactical error in the entry

2) I am not understanding the concept and purpose of this facility

any help will be much appreciated.

Thanks
# 2  
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.
# 3  
Old 10-11-2009
Although somewhat deprecated as TonyFullerMalv stated, inittab entries are still supported with Solaris 10. Your entry should just work. Perhaps your communicator program is simply failing to execute. Have a look at the system console for error messages like:
Code:
Command is respawning too rapidly. Check for possible Errors

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

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

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

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

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

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

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