[nycphp-talk] loop
Steve Manes
smanes at magpie.com
Sat Dec 21 08:36:05 EST 2002
At 12:01 PM 12/20/2002 -0500, Brian wrote:
>That is a great idea. I could keep it simple and just check for the
>existence
>of the file. When I want to kill the script, I delete the file. Before
>invoking it again I just upload the file again.
You could also do what Unix daemon wrappers do: write the PID to a
'run.pid' file. A separate kill script would read that file and send the
appropriate kill signal to the PID. This would eliminate the overhead and
latency of periodically re-reading a control file.
More information about the talk
mailing list