Operating System - HP-UX
1833163 Members
3401 Online
110051 Solutions
New Discussion

Process not started at startup

 
Kenneth_4
Occasional Contributor

Process not started at startup

I have configured my auto start up and shutdown process in /sbin/init.d/myscript, and created a link for this in /sbin/rc1.d rc2.d rc3.d rc4.d.

For rc3 and rc4 is a startup i.e SXXX.... and for rc2 and rc1 is a stop process i.e KXXX...

In normal shutdown and reboot procedures, all the scripts have been picked up and started up successfully. However, in the event that a sudden power failure occurs, such as the unplugging of the power cords from the server, the processes are not started up properly. The process does not check for any marker events before startup of the programs. So that eliminates 1 possibility.

Can anyone help? I am using an L1000, running HP-UX 11.

Thanks!
Ken
4 REPLIES 4
Philip Chan_1
Respected Contributor

Re: Process not started at startup

Does the program that you wanted to startup reference any pid file? some programs use this method to decide whether they should startup or not, eg. apache. During a power failure incident, the pid file won't be cleaned up hence the next startup will be skipped. In such case you can fix the problem removing the pid file manually.

Rgds,
Philip
Steffi Jones_1
Esteemed Contributor

Re: Process not started at startup

Hello,

a good starting point would be the following file:

/etc/rc.log

You will see some more info there.

And it is always good to watch the console for messages.

In any case it is never a good idea to pull the plug on a box. Always try to shutdown the box gracefulley,

Steffi Jones
John Waller
Esteemed Contributor

Re: Process not started at startup

By pulling the power the way you are doing, OK the shutdown procedures will not be followed, i.e. the Kxxx scripts will not be run but it should make no difference to the startup procedure.

What do you have to do to manually start the processes in this case ? Do you have to remove a file? or perform some kind of recovery ? If so then this could be the reason they do not automatically start.
Cheryl Griffin
Honored Contributor

Re: Process not started at startup

Power failures throw all standards of how unix behaves out the window. This is why it is so important to put your machine on a UPS system. The battery backup gives the machine time to shut itself down before any damage can be done by the power loss.
"Downtime is a Crime."