Browse Source

use systemd to start/stop lagopus

Change-Id: Ie8b4867846c557843163bce7ab32c63d4da781e3
Itsuro Oda 1 year ago
parent
commit
4d94a5655e
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      devstack/lagopus

+ 2
- 4
devstack/lagopus View File

@@ -35,14 +35,12 @@ function generate_dsl {
35 35
 function run_lagopus {
36 36
     echo "run_lagopus"
37 37
     generate_dsl
38
-    sudo lagopus -C $LAGOPUS_CONF_DIR/$LAGOPUS_CONF -l $LAGOPUS_LOG \
39
-        -- -c $LAGOPUS_CORE_MASK -n1 --socket-mem $LAGOPUS_SOCKET_MEM \
40
-        --huge-dir $LAGOPUS_HUGEPAGE_MOUNT -- --core-assign balance
38
+    _run_under_systemd lagopus "/usr/local/sbin/lagopus -d -C $LAGOPUS_CONF_DIR/$LAGOPUS_CONF -- -c $LAGOPUS_CORE_MASK -n1 --socket-mem $LAGOPUS_SOCKET_MEM --huge-dir $LAGOPUS_HUGEPAGE_MOUNT -- --core-assign balance" "" root
41 39
 }
42 40
 
43 41
 function stop_lagopus {
44 42
     echo "stop_lagopus"
45
-    sudo pkill -15 -f "lagopus -C $LAGOPUS_CONF_DIR/$LAGOPUS_CONF"
43
+    sudo systemctl stop devstack@lagopus.service
46 44
     sudo rm -f /tmp/sock*
47 45
 }
48 46
 

Loading…
Cancel
Save