How to monitor if a process is running in PHP
exec("pgrep lighttpd", $pids); if(empty($pids)) { // lighttpd is not running! }
pgrep -f full name match.
…
The post PHP methods for monitoring whether a process is running first appeared on Lenix Blog .
This article is reprinted from https://blog.p2hp.com/archives/8810
This site is for inclusion only, and the copyright belongs to the original author.