We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee7e255 + d424ac3 commit 795fabbCopy full SHA for 795fabb
tool/include
@@ -36,7 +36,7 @@ function start() {
36
}
37
38
function stop() {
39
- pids=$(ps -e -o pid,cmd | grep "$cmdline" | grep -v "grep" | awk '{print $1}')
+ pids=$(ps -ef | grep "$cmdline" | grep -v "grep" | awk '{print $2}')
40
array=($pids)
41
for pid in ${array[@]}; do
42
log_info "stop $server_name: pid=$pid"
0 commit comments