Catch Signals
| From: | Adam Voigt | Date: | Mon, 07 Jul 2003 15:21:20 +0000 |
| Subject: | Catch Signals | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-154198@lists.php.net to get a copy of this message | ||
I have a PHP script that is running constantly in the background,
and I've used CYGWIN to register it as a service, but the problem
is when I try to stop/start (restart) it from the service control
manager, it just sits and spins on the stop portion.
I'm fairly sure this is because the PHP program is still in it's
infinite loop doing what it's supposed to be doing, and doesn't
realize it's been sent a shutdown signal.
So, is there anyway to listen for a shutdown signal on a console
based PHP script under Windows?
--
Adam Voigt (adam@cryptocomm.com)
Linux/Unix Network Administrator
The Cryptocomm Group