Plugin system and docker update

- Use buffering in nchan communication
- Start any background command delayed
- Added openDokcer routine
- Code optimization
This commit is contained in:
bergware
2022-08-09 16:36:56 +02:00
parent b0c8aa85f4
commit 8308ae5842
25 changed files with 900 additions and 630 deletions
+1 -3
View File
@@ -39,9 +39,7 @@ if ($command && strncmp($name,$path,strlen($path))===0) {
$pid = pgrep($name);
} elseif ($start or !pgrep($name)) {
// start command in background and return pid
exec("echo \"$name $args\" | at -M now >/dev/null 2>&1");
usleep(100000);
$pid = pgrep($name);
$pid = exec("$docroot/webGui/scripts/start_command $name $args");
}
}
echo $pid;