aboutsummaryrefslogtreecommitdiff
path: root/daemon.sh
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-05-19 15:07:11 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-05-19 15:56:20 +0200
commitdb39772aa7b10ee6fb9e21db8f44c0f5fca7a1d2 (patch)
tree44997ae9b6efeae85286f7e0c04decf2f67f090a /daemon.sh
parent9ffaeef24d167bc1b99446bc07c7765c3375f776 (diff)
Fixed CMake global CFLAGS misuse which can cause xcompile errors.
nDPIsrvd-captured supports skipping flows w/o any layer 4 payload. * libndpi update * run_tests does not generate any *.out files for fuzz-*.pcap anymore and does not fail if nDPId-test exits with value 1 (most likely caused by a libpcap failure) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'daemon.sh')
-rwxr-xr-xdaemon.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon.sh b/daemon.sh
index dc9b5abe1..af062a702 100755
--- a/daemon.sh
+++ b/daemon.sh
@@ -19,14 +19,12 @@ if [ -r "/tmp/nDPId-${NSUFFIX}.pid" -o -r "/tmp/nDPIsrvd-${NSUFFIX}.pid" ]; then
if [ x"${nDPId_PID}" != x ]; then
sudo kill "${nDPId_PID}"
- wait "${nDPId_PID}"
else
printf '%s\n' "${1} not started .." >&2
fi
if [ x"${nDPIsrvd_PID}" != x ]; then
kill "${nDPIsrvd_PID}"
- wait "${nDPIsrvd_PID}"
else
printf '%s\n' "${2} not started .." >&2
fi
@@ -35,10 +33,12 @@ if [ -r "/tmp/nDPId-${NSUFFIX}.pid" -o -r "/tmp/nDPIsrvd-${NSUFFIX}.pid" ]; then
rm -f "/tmp/nDPIsrvd-${NSUFFIX}.pid"
printf '%s\n' "daemons stopped" >&2
else
+ set -x
${2} -p "/tmp/nDPIsrvd-${NSUFFIX}.pid" -c "/tmp/nDPIsrvd-${NSUFFIX}-collector.sock" -s "/tmp/nDPIsrvd-${NSUFFIX}-distributor.sock" -d
sudo chgrp "$(id -n -g "${NUSER}")" "/tmp/nDPIsrvd-${NSUFFIX}-collector.sock"
sudo chmod g+w "/tmp/nDPIsrvd-${NSUFFIX}-collector.sock"
sudo ${1} -p "/tmp/nDPId-${NSUFFIX}.pid" -c "/tmp/nDPIsrvd-${NSUFFIX}-collector.sock" -d -u "${NUSER}"
+ set +x
printf '%s\n' "daemons started" >&2
printf '%s\n' "You may now run examples e.g.: ./examples/py-flow-info/flow-info.py --unix /tmp/nDPIsrvd-${NSUFFIX}-distributor.sock"
fi