Skip to content

Commit

Permalink
Merge pull request #4 from polarismesh/main
Browse files Browse the repository at this point in the history
merge versions
  • Loading branch information
andrewshan authored Sep 14, 2021
2 parents 4634e69 + ccbbf37 commit 0fbd2a9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ web/node_modules
web/dist
.idea
department.txt
./log/
2 changes: 1 addition & 1 deletion tool/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ workdir=$(pwd)
#------------------------------------------------------
source tool/include

pids=$(ps -e -o pid,cmd | grep -w "$cmdline" | grep -v "grep" | awk '{print $1}')
pids=$(ps -ef | grep -w "$cmdline" | grep -v "grep" | awk '{print $2}')

array=($pids)
if [ "${#array[@]}" == "0" ]; then
Expand Down
2 changes: 1 addition & 1 deletion tool/include
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function start() {
}

function stop() {
pids=$(ps -e -o pid,cmd | grep -w "$cmdline" | grep -v "grep" | awk '{print $1}')
pids=$(ps -ef | grep -w "$cmdline" | grep -v "grep" | awk '{print $2}')
array=($pids)
for pid in ${array[@]}; do
log_info "stop $server_name: pid=$pid"
Expand Down
2 changes: 1 addition & 1 deletion tool/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ workdir=$(pwd)
#------------------------------------------------------
source tool/include

pids=$(ps -e -o pid,cmd | grep -w "$cmdline" | grep -v "grep" | awk '{print $1}')
pids=$(ps -ef | grep -w "$cmdline" | grep -v "grep" | awk '{print $2}')
array=($pids)
if [ "${#array[@]}" == "0" ]; then
start
Expand Down

0 comments on commit 0fbd2a9

Please sign in to comment.