Skip to content

Commit

Permalink
Merge pull request #33 from carbonblack/feature-cb-30152
Browse files Browse the repository at this point in the history
CB-30152: Service stop always return success.
  • Loading branch information
jcapolino authored Mar 2, 2020
2 parents a4a18f9 + a0a7fd6 commit 01fb41f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cb-yara-connector
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,10 @@ stop() {
pid=$(cat $pidfile)
pgid=$(ps -o pgid --pid $pid --no-heading)
pkill -15 -g $pgid && rm -f $pidfile 2> /dev/null
echo "Ok"
return 0
fi

echo "Ok"
return 1
return 0
}

status() {
Expand Down

0 comments on commit 01fb41f

Please sign in to comment.