diff --git a/cli.sh b/cli.sh index edaaf10f2..a9224927d 100755 --- a/cli.sh +++ b/cli.sh @@ -18,5 +18,8 @@ mw_stop() case "$1" in 'start') mw_start;; 'stop') mw_stop;; - 'restart') mw_stop mw_start;; + 'restart') + mw_stop + mw_start + ;; esac \ No newline at end of file diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index d33f52ae1..1bb2cb333 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -127,7 +127,10 @@ case "$1" in 'start') mw_start;; 'stop') mw_stop;; 'reload') mw_reload;; - 'restart') mw_stop mw_start;; + 'restart') + mw_stop + sleep 0.3 + mw_start;; 'status') mw_status;; 'logs') error_logs;; esac \ No newline at end of file