Last active
November 28, 2017 13:37
-
-
Save SaravanaStorageNetwork/5d2a8ae88871d33d2b642642d2ba4c8f to your computer and use it in GitHub Desktop.
tendrl cleanup and restart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop all services | |
for i in etcd tendrl-monitoring-integration tendrl-api tendrl-notifier carbon-cache grafana-server tendrl-node-agent httpd ; \ | |
do \ | |
systemctl stop $i;\ | |
done | |
# Cleanup | |
rm -rf /var/lib/etcd/* | |
rm -rf /var/lib/carbon/whisper/* | |
rm -rf /var/lib/grafana/grafana.db | |
# Start services | |
for i in etcd tendrl-monitoring-integration tendrl-api tendrl-notifier carbon-cache grafana-server tendrl-node-agent httpd ; \ | |
do \ | |
systemctl start $i;\ | |
done | |
# Check status | |
for i in etcd tendrl-monitoring-integration tendrl-api tendrl-notifier carbon-cache grafana-server tendrl-node-agent httpd ; \ | |
do \ | |
systemctl status $i;\ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment