From d3df7449e1c3036e8b04e507041a485b263ed8ab Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Wed, 2 Apr 2025 19:31:48 -0400 Subject: [PATCH] Refactor: rc.nginx removes published paused flag --- etc/rc.d/rc.nginx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/rc.d/rc.nginx b/etc/rc.d/rc.nginx index 9f5cf1c5e..0f903a569 100755 --- a/etc/rc.d/rc.nginx +++ b/etc/rc.d/rc.nginx @@ -716,7 +716,9 @@ nginx_start(){ # side-load unraid-api unraid_api_control start # resume nchan publishers - /usr/local/sbin/monitor_nchan start + /usr/local/sbin/monitor_nchan start + rm -f /tmp/publishPaused + if nginx_running; then REPLY="Started"; else REPLY="Failed"; fi fi log "$DAEMON... $REPLY." @@ -792,6 +794,7 @@ nginx_reload(){ fi # resume nchan publishers /usr/local/sbin/monitor_nchan start + rm -f /tmp/publishPaused else log "Invalid configuration, $DAEMON not reloaded" return 1