monitor_nchan: restore 'kill' command

This commit is contained in:
bergware
2025-04-02 08:59:42 +02:00
parent 65db79a786
commit 8a5acf2808
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -749,7 +749,7 @@ nginx_stop_forced(){
else
unraid_api_control stop
# stop nchan publishers
/usr/local/sbin/monitor_nchan stop remove
/usr/local/sbin/monitor_nchan kill
kill -TERM $(cat $PID)
nginx_waitfor_shutdown
if ! nginx_running; then REPLY="Stopped"; else REPLY="Failed"; fi
+7 -1
View File
@@ -26,10 +26,16 @@ nchan_start() {
rm -f $nchan_list
}
if [[ $1 == kill ]]; then
echo "Stopping nchan processes..."
nchan_stop
rm -f $nchan_pid $disk_load
exit
fi
if [[ $1 == stop ]]; then
echo "Stopping nchan processes..."
nchan_stop
[[ $2 == remove ]] && rm -f $nchan_pid $disk_load
exit
fi