diff --git a/dsSso/Shell/remote.sh b/dsSso/Shell/remote.sh index d2c5bba4..c67f405a 100644 --- a/dsSso/Shell/remote.sh +++ b/dsSso/Shell/remote.sh @@ -11,5 +11,8 @@ chmod +x dsSso # 运行为后台进程 cd /usr/local/dsMin/dsSso && +# kill 命令不使用 -9 参数时,会回调 onStop() 方法,确定不需要此回调建议使用 -9 参数 +kill -9 `pgrep -f dsSso` 2>/dev/null + # 使用dlv方便远程调试 dlv --listen=:2345 --headless=true --api-version=2 exec ./dsSso