We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8d8dd5 + cc5a369 commit d11ebc0Copy full SHA for d11ebc0
network_tap/ncapture/run.sh
@@ -1,5 +1,4 @@
1
#!/bin/bash
2
-set -e
3
4
URI="$1"
5
INTERVAL="$2"
@@ -76,6 +75,11 @@ run_tracecapd() {
76
75
echo -e "format: pcapfile\nnamingscheme: ${name}\ncompressmethod: none\nrotationperiod: day\n" > $dwconf
77
echo -e "anon: $ANON\nchecksum: $CSUM\npayload: $PAYS\ndnspayload: $DPAYS\n" > $ppconf
78
timeout --preserve-status -k2 ${interval}s tracecapd -t 1 -c $dwconf -p $ppconf -s $uri -f "$filter"
+ status=$?
79
+ if [ $status != 0 ]; then
80
+ python3 send_message.py -1;
81
+ exit 1
82
+ fi
83
}
84
85
run_capture() {
0 commit comments