diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index fd6933956..8a38bf577 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -762,21 +762,16 @@ case "$1" in mw_stop sleep 2 mw_start - # (mw_stop && sleep 2 && mw_start) > /dev/null 2>&1 & - # echo "restarting mw service in background..." - # echo "please check service status later." mw_default;; 'restart_panel') - mw_stop_panel && sleep 2 && mw_start_panel - # (mw_stop_panel && sleep 2 && mw_start_panel) > /dev/null 2>&1 & - # echo "restarting mw-panel service in background..." - # echo "please check service status later." + mw_stop_panel + sleep 2 + mw_start_panel mw_default;; 'restart_task') - mw_stop_task && sleep 2 && mw_start_task - # (mw_stop_task && sleep 2 && mw_start_task) > /dev/null 2>&1 & - # echo "restarting mw-task service in background..." - # echo "please check service status later." + mw_stop_task + sleep 2 + mw_start_task mw_default;; 'status') mw_status;; 'logs') error_logs;;