From 12c07e01753d1001b6d0dd4771d3c17a32fe72be Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Sat, 15 Jul 2023 10:27:41 -0700 Subject: [PATCH] services: fixed pcap service not properly backgrounding command to avoid blocking --- daemon/core/configservices/utilservices/templates/pcap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/core/configservices/utilservices/templates/pcap.sh b/daemon/core/configservices/utilservices/templates/pcap.sh index 6a099f8c..d4a0ea9f 100644 --- a/daemon/core/configservices/utilservices/templates/pcap.sh +++ b/daemon/core/configservices/utilservices/templates/pcap.sh @@ -3,7 +3,7 @@ # (-s snap length, -C limit pcap file length, -n disable name resolution) if [ "x$1" = "xstart" ]; then % for ifname in ifnames: - tcpdump -s 12288 -C 10 -n -w ${node.name}.${ifname}.pcap -i ${ifname} < /dev/null & + tcpdump -s 12288 -C 10 -n -w ${node.name}.${ifname}.pcap -i ${ifname} > /dev/null 2>&1 & % endfor elif [ "x$1" = "xstop" ]; then mkdir -p $SESSION_DIR/pcap