Operating System - HP-UX
1833491 Members
2799 Online
110052 Solutions
New Discussion

/etc/inittab file having duplicate entries -one script does n't fire

 

/etc/inittab file having duplicate entries -one script does n't fire

I have two entries like on /etc/inittab file:
mFlm:2345:wait:sh /etc/mflmrcscript > /dev/null 2>&1

mFlm:2345:wait:sh /opt/lib/cobol/aslmf/appinit.sh > /dev/null 2>&1

The second script does n't fire at all when system boots.Does anyone have any idea why this is happening? Is the duplicate id field "mFlm" the cause of this? Please help on this? Ths system i am using is 11.00 system
Hello
5 REPLIES 5
Ross Zubritski
Trusted Contributor

Re: /etc/inittab file having duplicate entries -one script does n't fire

mFlm must be unique:

The entry fields are:

id A one- to four-character value used to uniquely
identify an entry. Duplicate entries cause an error
message to be issued, but are otherwise ignored. The
use of a four-character value to identify an entry is
strongly recommended (see WARNINGS below).

Regards,

RZ

Ross Zubritski
Trusted Contributor

Re: /etc/inittab file having duplicate entries -one script does n't fire

The inittab file is composed of entries that are position-dependent
and have the following format:

id:rstate:action:process

Sorry.

RZ

Re: /etc/inittab file having duplicate entries -one script does n't fire

I tried mFlm2:2345:wait:sh /opt/lib/cobol/aslmf/appinit.sh > /dev/null 2>&1 instead of
mFlm:2345:wait:sh /opt/lib/cobol/aslmf/appinit.sh > /dev/null 2>&1 so as to not duplicate but it still does n't fire when system boots.It fires when the above line only exists in /etc/inittab instead of

mFlm:2345:wait:sh /etc/mflmrcscript > /dev/null 2>&1

mFlm:2345:wait:sh /opt/lib/cobol/aslmf/appinit.sh > /dev/null 2>&1

Are there any logs I can look into for init process errors
Hello
A. Clay Stephenson
Acclaimed Contributor

Re: /etc/inittab file having duplicate entries -one script does n't fire

Hmmm, let's see "mFlm2" is five characters and only the first four count; thus, "mFlm" and "mFlm2" are identical for init purposes.

Change the second one to "xFlm" and I'll bet your problems go away. Make sure that you do an init q after the change.

If it ain't broke, I can fix that.

Re: /etc/inittab file having duplicate entries -one script does n't fire

Thanks for all your input
Hello