aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-09-19 07:58:08 +0000
committerJan Gelety <jgelety@cisco.com>2018-09-19 14:58:35 +0000
commit5f7c2bc0f96747dcd37c59971a58f8b838ac2eb8 (patch)
tree2c3cf2c8e768a42d99bf5d2957483e2e77fa6b8d /resources/libraries/bash
parent900fe671c5e3095ec9a3bc31e1b0a7d1f8045116 (diff)
CSIT-1291 Improve service handling with container detection
Change-Id: Iaeac10676f46e0267041afee927bc6e3201146b2 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/bash')
-rw-r--r--resources/libraries/bash/dut_setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/libraries/bash/dut_setup.sh b/resources/libraries/bash/dut_setup.sh
index 28b495c3fa..aee6386bd7 100644
--- a/resources/libraries/bash/dut_setup.sh
+++ b/resources/libraries/bash/dut_setup.sh
@@ -33,7 +33,7 @@ cmd 'ps aux | grep vpp'
cmd 'cat /etc/vpp/startup.conf'
-cmd 'sudo -S service vpp restart'
+cmd 'if fgrep docker /proc/1/cgroup; then supervisorctl restart vpp; else sudo -S service vpp restart; fi'
echo "[Command_desc] SLEEP for three seconds, so that VPP is up for sure"
cmd 'sleep 3'