Skip to content

Commit

Permalink
On Pi reboot/start the scheduler start/stop button status doesn't sho…
Browse files Browse the repository at this point in the history
…w 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 <[email protected]>
  • Loading branch information
chriss158 committed Nov 13, 2015
1 parent 2b42b7c commit 5385e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down

0 comments on commit 5385e63

Please sign in to comment.