Skip to content

Commit

Permalink
Merge pull request #6 from supasteev0/fix-watchdog-check
Browse files Browse the repository at this point in the history
fix watchdog helper getProcessPid not ignoring grep
  • Loading branch information
gggeek authored Jan 9, 2018
2 parents a8e60f3 + 8107ef3 commit 6a4f9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/Watchdog.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function getProcessPidByCommand($command)
} else {
exec(
// gotta love escaping single quotes in shell
"ps -eo pid,args | fgrep '" . str_replace("'", "'\''", $command) . "' | fgrep -v fgrep",
"ps -eo pid,args | fgrep '" . str_replace("'", "'\''", $command) . "' | grep -v grep",
$output,
$retCode);

Expand Down

0 comments on commit 6a4f9b0

Please sign in to comment.