From 6e83757d05fc2943983d1e187173de9a237a1619 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 12 Dec 2018 21:35:04 +0800 Subject: [PATCH] update --- cli.sh | 5 ++++- scripts/init.d/mw.tpl | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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