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.
|
#!/bin/bash
|
|
|
|
# 启动入口类,该脚本文件用于别的项目时要改这里
|
|
MAIN_CLASS=com.dsideal.base.BaseApplication
|
|
|
|
# kill 命令不使用 -9 参数时,会回调 onStop() 方法,确定不需要此回调建议使用 -9 参数
|
|
kill -9 `pgrep -f ${MAIN_CLASS}` 2>/dev/null
|
|
|
|
# 以下代码与上述代码等价
|
|
# kill $(pgrep -f ${MAIN_CLASS}) 2>/dev/null
|