compass-core/bin/refresh.sh
baigk e557d06fd4 bugfix install compass onto centos7
1. change mariadb to mysql
2. delete the "exit 0" in cobbler.sh
3. enable rabbitmq service in dependency.sh

Change-Id: I56ac94460c772edd54b0ee6e28392964aa5aa582
Signed-off-by: baigk <baiguoku@huawei.com>
2015-12-19 15:13:07 +08:00

23 lines
782 B
Bash
Executable File

#!/bin/bash
set -e
systemctl restart mysql.service
systemctl status mysql.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 $?