1848625 Members
4044 Online
104033 Solutions
New Discussion

Bootexec

 
SOLVED
Go to solution
Andrew Luis Arruza
Frequent Advisor

Bootexec

A question about /etc/rc.config.d/bootexec.
Should the START and STOP in this file be equal to 1 or to 0?
We presently have some servers set to START=1 and STOP=1 and some have START=1 and STOP=0.
Any help in clarifying this will be greatly appreciated.
Andy
It is, after all, a matter of survival!!
16 REPLIES 16
Patrick Wallek
Honored Contributor

Re: Bootexec

What version of the OS are you running?

I have checked on 10.20, 11.0 and 11i machines and I don't have that file. What process does it control?
Andrew Luis Arruza
Frequent Advisor

Re: Bootexec

Patrick,
We are running HP-UX 11.00
It is, after all, a matter of survival!!
Andrew Luis Arruza
Frequent Advisor

Re: Bootexec

Also, this is the process that controls the stop and startup scripts. At least that is what I am lead to believe.
It is, after all, a matter of survival!!
Patrick Wallek
Honored Contributor

Re: Bootexec

Can you post of copy of that file? As I said, I don't have that on any of my machines.
Andrew Luis Arruza
Frequent Advisor

Re: Bootexec

Attached is a copy of the /etc/rc.config.d/bootexec
It is, after all, a matter of survival!!
Mark van Hassel
Respected Contributor

Re: Bootexec

Can you also post a copy of /sbin/init.d/bootexec

The surest sign that life exists elsewhere in the universe is that none of it has tried to contact us
Andrew Luis Arruza
Frequent Advisor

Re: Bootexec

Attached is a copy of the
/sbin/init.d/bootexec
It is, after all, a matter of survival!!
Joseph C. Denman
Honored Contributor

Re: Bootexec

looks like it starts and stops your webserver and database.

...jcd...
If I had only read the instructions first??
Andrew Luis Arruza
Frequent Advisor

Re: Bootexec

The problem is that it does not start up the database(Sybase) or the webserver(Apache). I realize that much is commented out in the attachment but nothing comes up.
It is, after all, a matter of survival!!
Joseph C. Denman
Honored Contributor

Re: Bootexec

Sorry, look like it use too. Now, it does not look like it does much of anything.

...jcd...
If I had only read the instructions first??
A. Clay Stephenson
Acclaimed Contributor

Re: Bootexec

Hi,

I suspect the problem is in the su - ess which is souring ess's .profile. You probably have commands like stty, tabs in the .profile.

1) Examine your ESSLOG in /var/adm for clues.
2) Try to execute the start command as user ess from the shell.
3) If 2) works then build a wrapper shell which sets and export needed vars and then calls your start/stop command. Your init.d script woulf then call this wrapper script
su ess mywrapper.sh start|stop


If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: Bootexec

You say nothing gets started when this runs. Does anything show up /etc/rc.log for this script? Any errors, messages, etc? This is a homegrown script that someone did. It is not a standard HP-UX startup script. If you post the section for this from the /etc/rc.log we will be able to tell a bit more.

If apache, Maestro, adsm and MF Cobol do not start, are they installed on this machine? Are they supposed to be running?

This looks like a script that is supposed to be modified for each system based on the software that is installed on each particular system.
Andrew Luis Arruza
Frequent Advisor

Re: Bootexec

Attached is the /etc/rc.log from last reboot.
It is, after all, a matter of survival!!
Andrew Luis Arruza
Frequent Advisor

Re: Bootexec

Apache, MF Cobol, ADSM and Maestro are all installed on this server. I have had to manually restart them along with Sybase.
It is, after all, a matter of survival!!
Andrew Luis Arruza
Frequent Advisor

Re: Bootexec

I noticed that I did not have a link in the /sbin/init.d to the bootexec. That is the following was missing:
ln /sbin/init.d/bootexec S910bootexec
It is, after all, a matter of survival!!
Joseph C. Denman
Honored Contributor
Solution

Re: Bootexec

OK, here is what I would do.

Modify the /sbin/init.d/bootexec file. Uncomment out needed commands for the start and stop case as well as add additional if needed.

Modify /etc/rc.config.d/bootexec file. Set START=1.

Create link such as K910bootexec and S910bootexec in the /etc/rc2.d directory.

ln -s /sbin/init.d/bootexec /etc/rc2.d/S910bootexec
ln -s /sbin/init.d/bootexec /etc/rc2.d/K910bootexec

Then I would test.

cd /etc/rc2.d
./K910bootexec stop
./S910bootexec start

Hope this helps

...jcd...
If I had only read the instructions first??