mkitab problem with /etc/inittab respawning


 
Thread Tools Search this Thread
Operating Systems AIX mkitab problem with /etc/inittab respawning
# 8  
Old 09-22-2008
Pederabo
Just clarifying-

So you are agreeing with Shockneck and saying that using the SRC would handle this problem better than an /etc/inittab entry, which is what I did at first?

You agree with the solution I gave below using mkssys as as a safe alternative?

I already had runaway processes blow up on this box to the danger of livelihood and limb, would like to hear a few ayes from the crew on this new different approach before proceeding.

thanx!
# 9  
Old 09-22-2008
I don't know AIX, SRC, or mkssys well enough to comment on that.
# 10  
Old 09-23-2008
Does anyone else agree with my mkssys solution?

Smilie
# 11  
Old 09-23-2008
Quote:
Originally Posted by jeffpas
Does anyone else agree with my mkssys solution?

Smilie
I don't know the app but the mkssys definition looks good. Give it a try.
# 12  
Old 09-25-2008
Okay I created the dprdaemon subsystem with this command:

mkssys -p /dplogs/dpr_daemon -s dprdaemon -u 0 -a "-D" -e /dev/null -i /dev/null -o /dev/null -R -S -Q -f 9 -n 15

I specifically put in '-Q' to state that multiple instances of this program are not allowed, although it is the default anyway.

It responded that it had created the subsystem.

When I do a

lssrc -a | grep dpr

I see it as 'inoperative'.
dprdaemon inoperative


When I:

startsrc -s dprdaemon

I get:
0513-059 The dprdaemon Subsystem has been started. Subsystem PID is 831714.

All good.


BUT........
I immediately have 3 instances/processes running on the box, not 1:


# ps -ef | grep dpr
root 454674 1 0 15:42:04 - 0:00 /usr/bin/perl /dplogs/dpr/dpr_daemon -D
root 831720 1 0 15:42:04 - 0:00 /usr/bin/perl /dplogs/dpr/dpr_daemon -D
root 839896 1 0 15:42:04 - 0:00 /usr/bin/perl /dplogs/dpr/dpr_daemon -D


Also, when I do:

# lssrc -a | grep dpr

I see:

dprdaemon inoperative


Very strange!
Registering the subsystem seems to have worked. But why would activating the subsystem create 3 instances, and then the subsystem show as 'inoperative' ?

Puzzling.

Last edited by jeffpas; 09-25-2008 at 12:54 PM..
# 13  
Old 09-25-2008
What does
# odmget -q subsysname=dprdaemon SRCsubsys
return?
# 14  
Old 09-25-2008
shockneck:


SRCsubsys:
subsysname = "dprdaemon"
synonym = ""
cmdargs = ""
path = "/dplogs/dpr/dpr_daemon"
uid = 0
auditid = 0
standin = "/dev/null"
standout = "/dev/null"
standerr = "/dev/null"
action = 1
multi = 0
contact = 2
svrkey = 0
svrmtype = 0
priority = 20
signorm = 15
sigforce = 9
display = 1
waittime = 20
grpname = ""
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. 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

3. AIX

problem to restart services from /etc/inittab in AIX6.1

hello, i have an AIX6.1.7.2 machine that it was upgraded recently from AIX5.3.9.4. when i kill system services that should restart automatically like /usr/sbin/cron it doesnt start. i checked my /etc/inittab file and i confirmed that this service is in respawn status so when i kill this process... (2 Replies)
Discussion started by: omonoiatis9
2 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. 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

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

7. HP-UX

INIT: Command respawning too rapidly

INIT:Command is respawning too rapidly Check for errors: id:cons /usr/sbin/getty console console A solution I read about in a different HPUX Forums help pages on line, said to add the -h option to this command in the /etc/inittab file to correct the problem. I tried this and it did not... (2 Replies)
Discussion started by: 1bigdog
2 Replies

8. UNIX for Dummies Questions & Answers

HP-UX respawning boot failure

Hello. System is a HP Visualize C3600 running X11 and after a power failure machine will not boot (see error messages below) From what I've read, this may be caused by a corrupted etc/inittab file. Solution suggested on other websites is to boot in single user mode and edit file inittab... (2 Replies)
Discussion started by: westcoast
2 Replies

9. UNIX for Dummies Questions & Answers

Command is respawning too rapidly..message

Ran into a new one today at work...... I was told to start 2 servers which were shut down due to a power outage(I don't believe they were shut down incorrectly). After fsck, both console logins appear with the message: INIT: Command is respawning too rapidly. Check for possible errors. >... (5 Replies)
Discussion started by: finster
5 Replies

10. 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
Login or Register to Ask a Question