mirror of
https://github.com/unraid/webgui.git
synced 2026-05-12 07:10:52 -05:00
monitor_nchan: restore 'kill' command
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user