|
Posted by fletch on 04/25/06 00:45
> For anyone interested, a working function to become a Daemon (background
> task, unattached from the parent process) from a PHP CLI script is:
<sinp code>
this is useful code but I would like to point out that a daemon should
automatically restart when it dies unexpectedly, and ensure that only
one instance is running, not covering these cases is usally a bad
thing. It depends what the daemon does of course.
Navigation:
[Reply to this message]
|