From 5385e636d2cfce00c31d325739faa88ada91c829 Mon Sep 17 00:00:00 2001 From: hasenbolle Date: Fri, 13 Nov 2015 20:07:21 +0100 Subject: [PATCH] On Pi reboot/start the scheduler start/stop button status doesn't show the correct state, because of the wrong process string. If you press then "Start" on the sheduler page again, the schedule process is running twice, which leads to a weird behavior of the scheduler. Signed-off-by: hasenbolle --- www/schedule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/schedule.php b/www/schedule.php index 6a2cf559..34cd216c 100644 --- a/www/schedule.php +++ b/www/schedule.php @@ -125,7 +125,7 @@ function isCli() { function getSchedulePID() { $pids = array(); - exec("ps -ef | awk '$9==\"schedule.php\" {print $2}'", $pids); + exec("ps -ef | awk '$9==\"/var/www/schedule.php\" {print $2}'", $pids); $pidId = 0; if (count($pids) > 0) { if (is_numeric($pids[0])) {