compass-core/bin/refresh.sh
baigk 47d8d49133 Merge branch "https://github.com/baigk/compass-core.git into dev/opnfv
Change-Id: Ie2be5756f0c425a5d40e3092f52f245709fccbf3
Signed-off-by: baigk <baiguoku@huawei.com>
2015-11-18 17:32:25 -08:00

23 lines
643 B
Bash
Executable File

#!/bin/bash
set -e
service mysqld restart
service mysqld status || exit $?
/opt/compass/bin/manage_db.py createdb
/opt/compass/bin/clean_installers.py --noasync
/opt/compass/bin/clean_installation_logs.py
rm -rf /var/ansible/run/*
service httpd restart
service httpd status || exit $?
service rsyslog restart
service rsyslog status || exit $?
service redis restart
service redis status || exit $?
redis-cli flushall
service cobblerd restart
service cobblerd status || exit $?
service compass-celeryd restart
service compass-celeryd status || exit $?
service compass-progress-updated restart
service compass-progress-updated status || exit $?