diff --git a/class/core/mw.py b/class/core/mw.py index ddc2abcd9..156f56227 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -113,7 +113,7 @@ def isInstalledWeb(): def restartWeb(): if isInstalledWeb(): initd = getServerDir() + '/openresty/init.d/openresty' - execShell(initd + ' ' + 'reload') + execShell(initd + ' ' + 'restart') def restartMw(): diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 071b890d2..03053418f 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -20,6 +20,8 @@ PATH=$PATH:$mw_path/bin if [ -f $mw_path/bin/activate ];then source $mw_path/bin/activate +else + echo "" fi