mirror of
https://github.com/unraid/webgui.git
synced 2026-05-01 07:19:32 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user