Operating System - HP-UX
1760212 Members
3318 Online
108893 Solutions
New Discussion

Re: The job started in background after sometime automatically gets killed.

 
NarendraUttekar
Advisor

The job started in background after sometime automatically gets killed.

Hi,

I am starting one job in background as below,

 

nohup /opt/sapbc47/Server/bin/server.sh &

 

But after sometime when i logoff from that server where i run the job in background as above after some time job gets killed. But if i am not logging off from that server the jobs keep running.

 

Please let me know how to start the background job in unattended mode so that when i logoff from that server the job will continue to run. But this problem is not coming on other server i am starting the job on that server same as above. We are having HP-UX 11i V1.

 

Thanks,

Narendra

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: The job started in background after sometime automatically gets killed.

You could also redirect stdin to /dev/null to make sure.

 

>sometime when I logoff from that server where I run the job in background as above after some time job gets killed.


nohup should stop that.  Have you looked at the nohup.out file for any messages?

>But this problem is not coming on other server I am starting the job on that server same as above.

 

That's strange, I would expect both to be the same.

Do you have any logs to indicate why it died?  Add a signal handler just to track the signals before exiting?