mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 10:50:23 +01:00
Don't rely on PID file, but try to detect FTL PID ourselves (has shown to be very effective in the update service file)
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
|
||||
function testFTL()
|
||||
{
|
||||
return (strpos(exec("ps -p `cat /var/run/pihole-FTL.pid` -o comm="), "pihole-FTL") !== false);
|
||||
$ret = shell_exec("pidof pihole-FTL");
|
||||
return intval($ret);
|
||||
}
|
||||
|
||||
function connectFTL($address, $port=4711, $quiet=true)
|
||||
|
||||
Reference in New Issue
Block a user