You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
443 B

#!/bin/bash
# 先杀掉内存中的进程
kill -9 `pgrep -f dsSso` 2>/dev/null
# 休息3秒
sleep 3
cd /usr/local/dsMin/dsSso
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