Test if a daemon is running...
| From: | Gilles Nedostoupof | Date: | Thu, 02 May 2002 10:10:48 +0000 |
| Subject: | Test if a daemon is running... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95668@lists.php.net to get a copy of this message | ||
Hello everybody,
I would like to know an easy way to check is a daemon is running.
What do you think is the best? Try to read a .pid file from the right
directory? Use sockets function to try to connect to the listening port of
the daemon? Grep the output of "ps -e" ?
Thanks for your help !
Gilles.