1834307 Members
2591 Online
110066 Solutions
New Discussion

Re: using inittab

 
vladimir gershman
Occasional Advisor

using inittab

Greetings,

At the very end of /etc/inittab i have a user script No.1 that starts an application in a background. I decided to put another user program No.2 before the No.1 script. Now No.2 runs, but No.1 does not run anymore. No.1 is located in /etc, No.2 is in /home/me directory.
Are there any issues with running user aps from inittab? I know it is not reccomended to run from inittab, but due to our configuration management dictatorship, i have to start the aps from inittab for now.

Thanks,
Vlad
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: using inittab

I've only modified /etc/inittab for two reasons:

1) The change the default run level of the machine.
2) To configure the machine to shutdown when the UPS says to.

I would take caution at just spawning an application there. Solve the problem. A mistake in /etc/inittab could easily have your box at its knees, very fast.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: using inittab

Hi Vlad:

Post your two applications entries from 'etc/inittab', please.

Regards!

...JRF...
blal
Frequent Advisor

Re: using inittab

Hi

Better way is you can configure new start/stop scripts and put in appropriate run level directory.For example put the start script in
/sbin/rc2.d for run level 2 and /sbin/rc1.d will contain the stop script script.


The template file for this is available in /sbin/init.d/template .

This is the recommented practice.

Inittab is a systemwide initialisation file, which generally contains entries to start all system processes while boot up.

regards,
baiju

Live and let live.
vladimir gershman
Occasional Advisor

Re: using inittab

Thanks all. I may know what the issue was. I used the same ID name for both processes and the man page says that one is usually igonred.