Skip to content

Commit

Permalink
Update Watchdog.php
Browse files Browse the repository at this point in the history
  • Loading branch information
blacknell committed Feb 16, 2021
1 parent b1d37c2 commit 189d248
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Watchdog.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public function watch(string $watchScript, string $watchScriptGrep, string $watc
$processScript = sprintf("%s > /dev/null 2>&1 &", $watchScript);
$this->logger->info(sprintf("Starting a new process with '%s'", $processScript), [$this->hostName, $this->ipAddress, getmypid()]);
exec($processScript);
sleep(2);

$processlist = array();
exec(sprintf('ps -eo pid,lstart,cmd|grep %s|grep -v grep', $watchScriptGrep), $processlist);
Expand Down

0 comments on commit 189d248

Please sign in to comment.