aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-06-13 21:06:20 +0200
committerChris Luke <chris_luke@cable.comcast.com>2016-06-14 13:35:58 +0000
commit1aa310fe3f06b5bdc27b71d1cde9d71d79e9bd85 (patch)
tree36d8fa5ec60346afef6062a151625c86245f69cd
parent802255c908a9bde9ef2e95ee7bffb8695c1c03f3 (diff)
Cleanup /dev/shm before starting VPP from top-level Makefile
Change-Id: I3a8b85ad033707552b9df7d0d08548517a8571ce Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d3088d24161..2d6429c0127 100644
--- a/Makefile
+++ b/Makefile
@@ -173,10 +173,12 @@ ifeq ("$(wildcard $(STARTUP_CONF))","")
define run
@echo "WARNING: STARTUP_CONF not defined or file doesn't exist."
@echo " Running with minimal startup config: $(MINIMAL_STARTUP_CONF)\n"
+ @sudo rm -f /dev/shm/vpe-api /dev/shm/db /dev/shm/global_vm
@cd $(STARTUP_DIR) && sudo $(1) $(MINIMAL_STARTUP_CONF)
endef
else
define run
+ @sudo rm -f /dev/shm/vpe-api /dev/shm/db /dev/shm/global_vm
@cd $(STARTUP_DIR) && sudo $(1) -c $(STARTUP_CONF)
endef
endif