mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 03:37:46 +08:00
[REV] add host_id_list.conf restart api
This commit is contained in:
parent
9545953ee5
commit
29c09d09bd
@ -65,6 +65,14 @@ function write_host_id_list() {
|
||||
log.info "add $api_node to host_id_list.conf"
|
||||
echo "$api_node;" >> /etc/goodrain/host_id_list.conf
|
||||
done
|
||||
log.info "will restart rbd-api"
|
||||
dc-compose restart rbd-api
|
||||
[ $? -ne 0 ] && (
|
||||
dc-compose stop rbd-api
|
||||
cclear
|
||||
dc-compose up -d
|
||||
)
|
||||
#dc-compose ps | grep "rbd-api" | grep -i "up"
|
||||
}
|
||||
|
||||
function run() {
|
||||
|
Loading…
Reference in New Issue
Block a user