process terminated

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
devendra-m
Forum Contributor
Posts: 111
Joined: Wed Sep 12, 2007 3:16 am

process terminated

Post by devendra-m »

I have a page which runs at background after an event is triggered. That page may run for more than 20 hours. But when tested the page was found terminated after about 2 hours. What might be the reason that the process was terminated?. System Administrator said that he took backup and he said he didn't restarted the apache server. Is it possible while taking backup the process running at background was killed somehow?
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: process terminated

Post by josh »

Any process thats going to run that long should be executed on the command line

`nohup /path/to/php ./myScript.php > /log/path/myScriptLog.log &`
Post Reply