musicbrainz-server/script/purge_sir_queues.sh
Michael Wiencek ebcab66729 Remove the sir-queue-purger service
This was needed to work around the fact that rabbitmqctl must be run as
the rabbitmq user or root.  Instead, just allow the musicbrainz user to
use sudo.
2021-10-06 07:33:12 -05:00

9 lines
269 B
Bash
Executable File

#!/usr/bin/env bash
VHOST=${1:-/sir}
sudo -n rabbitmqctl purge_queue -p "$VHOST" search.delete
sudo -n rabbitmqctl purge_queue -p "$VHOST" search.failed
sudo -n rabbitmqctl purge_queue -p "$VHOST" search.index
sudo -n rabbitmqctl purge_queue -p "$VHOST" search.retry