[spp] [PATCH 22/29] bin: remove sock files created by docker

Yasufumi Ogawa yasufum.o at gmail.com
Tue Feb 25 11:34:39 CET 2020


If docker does mount a sock file without created before from DPDK while
launching a container, docker create an empty directory which name is
the same as the sock file.

SPP startup script removes existing sock files before launching SPP
processes, but does not directories. This update is to enable to remove
directory.

Signed-off-by: Yasufumi Ogawa <yasufum.o at gmail.com>
---
 bin/spp_pri.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/spp_pri.sh b/bin/spp_pri.sh
index c0b0e1e..aca23a9 100644
--- a/bin/spp_pri.sh
+++ b/bin/spp_pri.sh
@@ -15,8 +15,8 @@ SOCK_MEMIF="/tmp/spp-memif.sock"
 
 function clean_sock_files() {
     # clean /tmp/sock*
-    sudo rm -f ${SOCK_VHOST}*
-    sudo rm -f ${SOCK_MEMIF}
+    sudo rm -rf ${SOCK_VHOST}*
+    sudo rm -rf ${SOCK_MEMIF}
 }
 
 # Add vhost vdevs named as such as `eth_vhost0`.
-- 
2.17.1



More information about the spp mailing list