๐
This file contains hidden or 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
#!/bin/bash | |
################################################################### | |
# check_postfix_mailqueue is developped with GPL Licence 2.0 | |
# | |
# GPL License: http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt | |
# | |
# First version developped by : Bjoern Bongermino | |
# | |
################################################################### | |
# This program is free software; you can redistribute it and/or |
This file contains hidden or 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
#!/bin/sh | |
systemctl stop elasticsearch.service | |
systemctl stop graylog-server.service | |
rm -rf /var/lib/elasticsearch/nodes/0/indices/* | |
# IF YOU HAVE AUTH USE THIS LINE - mongo graylog2 --eval "db.auth('graylog2', 'PASSWORD'); db.message_counts.remove();" | |
mongo graylog2 --eval "db.message_counts.remove();" | |
systemctl start elasticsearch.service | |
systemctl start graylog-server.service |