Skip to content

Commit

Permalink
Update Watchdog.php
Browse files Browse the repository at this point in the history
  • Loading branch information
blacknell committed Jan 5, 2022
1 parent f896ae5 commit 3cc510b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Watchdog.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function watch(string $watchScript, string $watchScriptGrep, string $watc

// now restart the script

$processScript = sprintf("%s", $watchScript);
$processScript = sprintf("%s &", $watchScript);
$this->logger->info(sprintf("Starting a new process with '%s'", $processScript), [$this->hostName, $this->ipAddress, getmypid()]);
exec($processScript);
sleep(2);
Expand Down

0 comments on commit 3cc510b

Please sign in to comment.