This commit is contained in:
root 2025-10-02 10:37:20 +00:00
parent 9c182698fe
commit b17ed95160
2 changed files with 4 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -85,11 +85,8 @@ function update_service()
$test_cmd = 'sudo /usr/sbin/nginx -t -q'; $test_cmd = 'sudo /usr/sbin/nginx -t -q';
$restart_cmd = 'sudo /bin/systemctl reload nginx'; $restart_cmd = 'sudo /bin/systemctl reload nginx';
$stop_main_encoder = 'sudo /bin/systemctl stop main-encoder';
$restart_main_encoder = 'sudo /bin/systemctl restart main-encoder';
exec($stop_main_encoder, $out, $status);
shell_exec("sudo systemctl stop main-encoder");
$input = "ffmpeg "; $input = "ffmpeg ";
$input_link = ""; $input_link = "";
@ -338,8 +335,8 @@ rtmp {
exec($restart_cmd, $out, $rc2); exec($restart_cmd, $out, $rc2);
} }
sleep(3); sleep(5);
exec($restart_main_encoder, $out, $status); shell_exec("sudo systemctl restart main-encoder");
} }