Skip to content

Commit

Permalink
Find and gracefully stop WMAgent CouchDB processes (#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaltaro authored May 21, 2024
1 parent f33b3d1 commit f6cac00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/pypi/wmagent-couchdb/manage
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ start()
stop()
{
echo "Stopping CouchDB service..."
for couch_pid in $(ps aux | grep '_couchdb' | egrep -v 'grep|couchdb\/manage|ps aux' | awk '{print $2}'); do
for couch_pid in $(ps aux | egrep 'couchdb|couchjs' | awk '{print $2}'); do
echo " killing CouchDB process... ${couch_pid}"
kill -9 $couch_pid || true
kill -s SIGTERM $couch_pid || true
done
}

Expand Down

0 comments on commit f6cac00

Please sign in to comment.