This commit is contained in:
devdatt 2025-12-09 04:51:52 +05:30
parent 27af496847
commit 56cb3d45a0
1 changed files with 1 additions and 1 deletions

View File

@ -537,11 +537,11 @@ http {
error_log("service_rtmp0_multiple"); error_log("service_rtmp0_multiple");
break; break;
} }
$file = "/var/www/encoder-rtmp0.sh"; $file = "/var/www/encoder-rtmp0.sh";
file_put_contents($file, $rtmp); file_put_contents($file, $rtmp);
exec('sudo systemctl enable encoder-rtmp0'); exec('sudo systemctl enable encoder-rtmp0');
exec('sudo systemctl restart encoder-rtmp0'); exec('sudo systemctl restart encoder-rtmp0');
break;
} else { } else {
exec('sudo systemctl stop encoder-rtmp0'); exec('sudo systemctl stop encoder-rtmp0');
exec('sudo systemctl disable encoder-rtmp0'); exec('sudo systemctl disable encoder-rtmp0');