Update mw.tpl

This commit is contained in:
dami
2026-04-14 18:11:18 +08:00
parent 930eb14a8a
commit f17447b2f1
+9 -9
View File
@@ -759,17 +759,17 @@ case "$1" in
'stop') mw_stop;; 'stop') mw_stop;;
'reload') mw_reload;; 'reload') mw_reload;;
'restart') 'restart')
mw_stop (mw_stop && sleep 2 && mw_start) > /dev/null 2>&1 &
sleep 2 echo "Restarting mw service in background..."
mw_start;; echo "Please check service status later.";;
'restart_panel') 'restart_panel')
mw_stop_panel (mw_stop_panel && sleep 2 && mw_start_panel) > /dev/null 2>&1 &
sleep 2 echo "Restarting mw-panel service in background..."
mw_start_panel;; echo "Please check service status later.";;
'restart_task') 'restart_task')
mw_stop_task (mw_stop_task && sleep 2 && mw_start_task) > /dev/null 2>&1 &
sleep 2 echo "Restarting mw-task service in background..."
mw_start_task;; echo "Please check service status later.";;
'status') mw_status;; 'status') mw_status;;
'logs') error_logs;; 'logs') error_logs;;
'close') mw_close;; 'close') mw_close;;