diff --git a/plugins/dynamix/include/StartCommand.php b/plugins/dynamix/include/StartCommand.php index 0d244f008..cec3deffa 100644 --- a/plugins/dynamix/include/StartCommand.php +++ b/plugins/dynamix/include/StartCommand.php @@ -39,7 +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 - $pid = exec("nohup $name $args 1>/dev/null 2>&1 & echo \$!"); + $pid = exec("nohup bash -c 'sleep .3 && $name $args' 1>/dev/null 2>&1 & echo \$!"); } } echo $pid;