Operating System - HP-UX
1833653 Members
3621 Online
110062 Solutions
New Discussion

Re: problem with startup scripts

 
Praveen Bezawada
Respected Contributor

problem with startup scripts

Hi
We have an application, we have written startup script for the same. the script when executed independently works fine. But after integrating with the system boot scripts, moving the script to /sbin/init.d and making the links in rc2.d and rc3.d. The application process is started but some how stopped immediately. I am unable to figure out what is stopping the application.
How should I do about this problem. Are there any system logs where I can check ? I have checked in rc.log, the startup process seems to be completed successfully. But no stopping log in that.
please help..thanks in advance
Praveen
3 REPLIES 3
JACQUET
Frequent Advisor

Re: problem with startup scripts

Hi,

If it is working on an other server, the fact that a process fall down could be a problem of resources. Have you checked difference in Kernel parameters between the 2 servers ? (Semaphors, ipc, ... )

PJA
PJA
MANOJ SRIVASTAVA
Honored Contributor

Re: problem with startup scripts

Praveen

The only thing that come in between is the ENV for the paricular script , in case you can run it independently and not through the automatic mode then executer the .profile for that user before the actual script get executed .

Manoj

Re: problem with startup scripts

I am assuming you are using the standard startup/shutdown template .Try using "nohup" when you call the script ( to start the application ) from the startup script.

ex. nohup su - username -c "startup_script"