From 840ec57db7062cdcf08cfeb01f71a9efe5784529 Mon Sep 17 00:00:00 2001 From: wubin Date: Tue, 1 Sep 2020 10:14:59 +0800 Subject: [PATCH] update --- dsSupport/Shell/debug.sh | 10 ++++++++++ dsSupport/Shell/start.sh | 9 +++++++++ dsSupport/Shell/stop.sh | 4 ++++ 3 files changed, 23 insertions(+) create mode 100644 dsSupport/Shell/debug.sh create mode 100644 dsSupport/Shell/start.sh create mode 100644 dsSupport/Shell/stop.sh diff --git a/dsSupport/Shell/debug.sh b/dsSupport/Shell/debug.sh new file mode 100644 index 00000000..1eab0eeb --- /dev/null +++ b/dsSupport/Shell/debug.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# 杀掉进程 +kill -9 `pgrep -f dsSupport` 2>/dev/null +sleep 3 + +cd /usr/local/dsMin/dsSupport +chmod +x dsSupport +# 运行为后台进程1 +/usr/local/dsMin/dsSupport/dsSupport diff --git a/dsSupport/Shell/start.sh b/dsSupport/Shell/start.sh new file mode 100644 index 00000000..2946f3f7 --- /dev/null +++ b/dsSupport/Shell/start.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# 杀掉进程 +kill -9 `pgrep -f dsSupport` 2>/dev/null +sleep 3 + +chmod +x dsBaseWeb +# 运行为后台进程 +nohup /usr/local/dsMin/dsSupport/dsSupport >> /usr/local/dsMin/dsSupport/dsSupport.log 2>&1 & diff --git a/dsSupport/Shell/stop.sh b/dsSupport/Shell/stop.sh new file mode 100644 index 00000000..c0be333c --- /dev/null +++ b/dsSupport/Shell/stop.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# kill 命令不使用 -9 参数时,会回调 onStop() 方法,确定不需要此回调建议使用 -9 参数 +kill -9 `pgrep -f dsSupport` 2>/dev/null