stacktach-sandbox/reset.sh
Sandy Walsh cc01846056 Preliminary time-sync and usage support
Optionally enable STv2 event playback through the
time_sync service and early UsageHandler support.

Change-Id: I5988d320fe41df29c52ebdb8e579bf0d7f53a45f
2014-10-16 13:08:42 -07:00

18 lines
303 B
Bash
Executable File

echo "This will nuke all StackTach.v3 data in mysql and rabbitmq!"
read -p "Are you sure? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
mysql -u root --password=password < reset.sql
sudo rabbitmqctl stop_app
sudo rabbitmqctl reset
sudo rabbitmqctl start_app
fi