Skip to content

Commit

Permalink
fix(bin/naruto): fix stop for darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
TIGERB committed Mar 23, 2019
1 parent edffcbf commit d27f8c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/naruto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
#An object-oriented multi process manager for PHP
#
#Version: 0.3.5
#Version: 0.5.0
#

# Find the master process pid
Expand All @@ -19,7 +19,7 @@ then
ppid=$(pstree -aps | grep 'naruto' | grep 'php' | awk -F ',' '{if(NR==1){print $2}}' | awk '{print $1}')
elif [[ "$os" == 'Darwin' ]]
then
ppid=$(pstree | grep 'php naruto' | grep '\-+' | awk '{print $4}')
ppid=$(pstree | grep 'naruto --worker-num' | grep '\-+' | awk '{print $4}')
else
echo -e "just support macos and linux os system"
exit
Expand Down Expand Up @@ -96,6 +96,6 @@ cat <<EOF
...
EOF
echo -e "\n \033[36m An object-oriented multi process manager for PHP\033[0m \n"
echo -e " \033[36mVersion: 0.3.5 \033[0m \n"
echo -e " \033[36mVersion: 0.5.0 \033[0m \n"
exit
esac

0 comments on commit d27f8c0

Please sign in to comment.