Browse Source

Merge "disable services when running unstack.sh properly"

tags/1.0.0
Zuul 1 year ago
parent
commit
3b288be3f7
1 changed files with 1 additions and 4 deletions
  1. 1
    4
      devstack/plugin.sh

+ 1
- 4
devstack/plugin.sh View File

@@ -181,7 +181,6 @@ function build_spp_primary_service() {
181 181
     iniset -sudo $unitfile "Unit" "Description" "Devstack $service"
182 182
     iniset -sudo $unitfile "Service" "User" "root"
183 183
     iniset -sudo $unitfile "Service" "ExecStart" "$PRIMARY_CMD"
184
-    iniset -sudo $unitfile "Install" "WantedBy" "multi-user.target"
185 184
 }
186 185
 
187 186
 function build_spp_vf_service() {
@@ -196,8 +195,6 @@ function build_spp_vf_service() {
196 195
     iniset -sudo $unitfile "Unit" "Description" "Devstack $service"
197 196
     iniset -sudo $unitfile "Service" "User" "root"
198 197
     iniset -sudo $unitfile "Service" "ExecStart" "$SEC_CMD"
199
-    #iniset -sudo $unitfile "Service" "Restart" "on-failure"
200
-    iniset -sudo $unitfile "Install" "WantedBy" "multi-user.target"
201 198
 }
202 199
 
203 200
 function build_systemd_services() {
@@ -221,7 +218,7 @@ function build_systemd_services() {
221 218
 }
222 219
 
223 220
 function stop_systemd_services() {
224
-    $SYSTEMCTL stop devstack@q-spp-agt.service
221
+    stop_process q-spp-agt
225 222
     MAPPINGS=${DPDK_PORT_MAPPINGS//,/ }
226 223
     ARRAY=( $MAPPINGS )
227 224
     for ((i=1; i<=${#ARRAY[@]}; i++)); do

Loading…
Cancel
Save