Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1291 Improve service handling with container detection
[csit.git]
/
resources
/
libraries
/
bash
/
dut_setup.sh
diff --git
a/resources/libraries/bash/dut_setup.sh
b/resources/libraries/bash/dut_setup.sh
index
28b495c
..
aee6386
100644
(file)
--- 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 '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'
echo "[Command_desc] SLEEP for three seconds, so that VPP is up for sure"
cmd 'sleep 3'