From 472b35894c1ca661b18588f30a4eed81f263b0e6 Mon Sep 17 00:00:00 2001 From: devdatt Date: Sun, 23 Nov 2025 11:05:59 +0530 Subject: [PATCH] static log --- encoder/static.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/encoder/static.php b/encoder/static.php index c2d9aad..13d7a9b 100755 --- a/encoder/static.php +++ b/encoder/static.php @@ -307,10 +307,12 @@ http { exec('sudo cp /var/www/nginx.conf /etc/nginx/'); exec("$nginx -t 2>&1", $output, $status); if ($status === 0) { + error_log("nginx tested fine "); exec("sudo systemctl restart nginx 2>&1", $o, $s); exec('sudo systemctl enable encoder-rtmp'); exec('sudo systemctl restart encoder-rtmp'); } else { + error_log("Error Nginx default"); exec('sudo cp /var/www/nginx.conf /etc/nginx/'); exec("sudo systemctl restart nginx"); exec('sudo systemctl stop encoder-rtmp');