Skip to content

Commit 795fabb

Browse files
authored
Merge pull request #15 from chuntaojun/fix_start.sh
fix:修复start.sh脚本问题
2 parents ee7e255 + d424ac3 commit 795fabb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/include

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function start() {
3636
}
3737

3838
function stop() {
39-
pids=$(ps -e -o pid,cmd | grep "$cmdline" | grep -v "grep" | awk '{print $1}')
39+
pids=$(ps -ef | grep "$cmdline" | grep -v "grep" | awk '{print $2}')
4040
array=($pids)
4141
for pid in ${array[@]}; do
4242
log_info "stop $server_name: pid=$pid"

0 commit comments

Comments
 (0)