Browse code

Merge "Enable some serivce when on boot"

Jenkins authored on 2016/01/07 10:38:08
Showing 4 changed files
... ...
@@ -154,6 +154,7 @@ EOF
154 154
         fi
155 155
     elif is_fedora; then
156 156
         install_package mariadb-server
157
+        sudo systemctl enable mariadb
157 158
     elif is_ubuntu; then
158 159
         install_package mysql-server
159 160
     else
... ...
@@ -101,6 +101,9 @@ EOF
101 101
         install_package postgresql
102 102
     elif is_fedora || is_suse; then
103 103
         install_package postgresql-server
104
+        if is_fedora; then
105
+            sudo systemctl enable postgresql-server
106
+        fi
104 107
     else
105 108
         exit_distro_not_supported "postgresql installation"
106 109
     fi
... ...
@@ -67,6 +67,7 @@ function _neutron_ovs_base_install_agent_packages {
67 67
         restart_service openvswitch-switch
68 68
     elif is_fedora; then
69 69
         restart_service openvswitch
70
+        sudo systemctl enable openvswitch
70 71
     elif is_suse; then
71 72
         restart_service openvswitch-switch
72 73
     fi
... ...
@@ -48,6 +48,9 @@ function install_rpc_backend {
48 48
         # Install rabbitmq-server
49 49
         install_package rabbitmq-server
50 50
     fi
51
+    if is_fedora; then
52
+        sudo systemctl enable rabbitmq-server
53
+    fi
51 54
 }
52 55
 
53 56
 # restart the rpc backend