note 24302 added to ref.exec
| From: | kop at meme dot com | Date: | Mon, 12 Aug 2002 18:52:20 +0000 |
| Subject: | note 24302 added to ref.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34884@lists.php.net to get a copy of this message | ||
AFICT, the standard Unix Apache configuration causes an rare problem when running a job in the
background. The MaxRequestsPerChild directive causes the child to terminate after 1000 requests, any
background processes associated with the child will die with the child unless they are started with
the "nohup" command. Thus, the proper way to start a job in the background is to use:
exec('nohup my-command > /dev/null 2>&1 &')
--
http://www.php.net/manual/en/ref.exec.php
http://master.php.net/manage/user-notes.php?action=edit+24302
http://master.php.net/manage/user-notes.php?action=delete+24302
http://master.php.net/manage/user-notes.php?action=reject+24302