services: fixed pcap service not properly backgrounding command to avoid blocking
This commit is contained in:
parent
d63aa03343
commit
12c07e0175
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
# (-s snap length, -C limit pcap file length, -n disable name resolution)
|
# (-s snap length, -C limit pcap file length, -n disable name resolution)
|
||||||
if [ "x$1" = "xstart" ]; then
|
if [ "x$1" = "xstart" ]; then
|
||||||
% for ifname in ifnames:
|
% 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
|
% endfor
|
||||||
elif [ "x$1" = "xstop" ]; then
|
elif [ "x$1" = "xstop" ]; then
|
||||||
mkdir -p $SESSION_DIR/pcap
|
mkdir -p $SESSION_DIR/pcap
|
||||||
|
|
Loading…
Reference in a new issue