compass-core/bin/refresh.sh
Xicheng Chang de164df670 Support install.sh for installing compass onto centos7
Change-Id: I2f652482ff112624d82cdca26a14ac3f83dd5045
2015-12-18 16:37:19 -08:00

23 lines
786 B
Bash
Executable File

#!/bin/bash
set -e
systemctl restart mariadb.service
systemctl status mariadb.service || 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/*
systemctl restart httpd.service
systemctl status httpd.service || exit $?
systemctl restart rsyslog.service
systemctl status rsyslog.service || exit $?
systemctl restart redis.service
systemctl status redis.service || exit $?
redis-cli flushall
systemctl restart cobblerd.service
systemctl status cobblerd.service || exit $?
systemctl restart compass-celeryd.service
systemctl status compass-celeryd.service || exit $?
systemctl restart compass-progress-updated.service
systemctl status compass-progress-updated.service || exit $?