From 297fb60fcb3b91304ed353bb4e02edbb701fb924 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 28 Nov 2022 11:50:55 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 8d00d750e..bbdf952f4 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -171,6 +171,17 @@ mw_reload() fi } +mw_close(){ + echo 'True' > $mw_path/data/close.pl +} + +mw_open() +{ + if [ -f $mw_path/data/close.pl ];then + rm -rf $mw_path/data/close.pl + fi +} + error_logs() { tail -n 100 $mw_path/logs/error.log @@ -254,6 +265,8 @@ case "$1" in mw_start_task;; 'status') mw_status;; 'logs') error_logs;; + 'close') mw_close;; + 'open') mw_open;; 'update') mw_update;; 'update_dev') mw_update_dev;; 'install_app') mw_install_app;;