Refactor: Nchan OOM recovery - switch to nginx restart

This commit is contained in:
Squidly271
2025-04-04 11:05:06 -04:00
committed by GitHub
parent e5d408db79
commit d938bf1b6b
+1 -1
View File
@@ -49,7 +49,7 @@ function publish($endpoint, $message, $len=1) {
my_logger("Nchan out of shared memory. Reloading nginx");
// prevent multiple attempts at restarting from other scripts using publish.php
touch("/tmp/publishPaused");
exec("/etc/rc.d/rc.nginx reload");
exec("/etc/rc.d/rc.nginx restart");
@unlink("/tmp/publishPaused");
}
}