Enable some serivce when on boot
Solve the devstack ./rejoin-stack.sh when is reboot-safe in RHEL 7. Enable mysql, postgresql, rabbitmq-server, openvswitch service when on boot. Change-Id: I3ce9fc58ccc76092ad08314de1c3c9339ebfb3b5 Related-Bug: #1486833
This commit is contained in:
parent
c4564dfbe6
commit
4d8c03a377
@ -154,6 +154,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
elif is_fedora; then
|
elif is_fedora; then
|
||||||
install_package mariadb-server
|
install_package mariadb-server
|
||||||
|
sudo systemctl enable mariadb
|
||||||
elif is_ubuntu; then
|
elif is_ubuntu; then
|
||||||
install_package mysql-server
|
install_package mysql-server
|
||||||
else
|
else
|
||||||
|
@ -101,6 +101,9 @@ EOF
|
|||||||
install_package postgresql
|
install_package postgresql
|
||||||
elif is_fedora || is_suse; then
|
elif is_fedora || is_suse; then
|
||||||
install_package postgresql-server
|
install_package postgresql-server
|
||||||
|
if is_fedora; then
|
||||||
|
sudo systemctl enable postgresql-server
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
exit_distro_not_supported "postgresql installation"
|
exit_distro_not_supported "postgresql installation"
|
||||||
fi
|
fi
|
||||||
|
@ -65,6 +65,7 @@ function _neutron_ovs_base_install_agent_packages {
|
|||||||
restart_service openvswitch-switch
|
restart_service openvswitch-switch
|
||||||
elif is_fedora; then
|
elif is_fedora; then
|
||||||
restart_service openvswitch
|
restart_service openvswitch
|
||||||
|
sudo systemctl enable openvswitch
|
||||||
elif is_suse; then
|
elif is_suse; then
|
||||||
restart_service openvswitch-switch
|
restart_service openvswitch-switch
|
||||||
fi
|
fi
|
||||||
|
@ -48,6 +48,9 @@ function install_rpc_backend {
|
|||||||
# Install rabbitmq-server
|
# Install rabbitmq-server
|
||||||
install_package rabbitmq-server
|
install_package rabbitmq-server
|
||||||
fi
|
fi
|
||||||
|
if is_fedora; then
|
||||||
|
sudo systemctl enable rabbitmq-server
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# restart the rpc backend
|
# restart the rpc backend
|
||||||
|
Loading…
Reference in New Issue
Block a user