mirror of
https://github.com/outbackdingo/nDPId.git
synced 2026-01-27 10:19:45 +00:00
MemoryProfiling: Advanced flow usage logging.
* nDPId-test: disable #include <syslog.h> if NO_MAIN macro defined * nDPId-test: mock syslog flags and functions * gitlab-ci: force -Werror Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
NUSER="nobody"
|
||||
NSUFFIX="${NSUFFIX:-daemon-test}"
|
||||
nDPId_THREADS="${nDPId_THREADS:-4}"
|
||||
|
||||
if [ x"${1}" = x -o x"${2}" = x ]; then
|
||||
printf '%s\n' "usage: ${0} [nDPId-path] [nDPIsrvd-path]" >&2
|
||||
@@ -39,7 +40,7 @@ else
|
||||
${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}"
|
||||
sudo ${1} -p "/tmp/nDPId-${NSUFFIX}.pid" -c "/tmp/nDPIsrvd-${NSUFFIX}-collector.sock" -d -u "${NUSER}" -o max-reader-threads=${nDPId_THREADS}
|
||||
set +x
|
||||
printf '%s\n' "daemons started" >&2
|
||||
printf '%s\n' "You may now run examples e.g.: $(realpath --relative-to="$(pwd)" $(dirname "${0}")/../examples/py-flow-info/flow-info.py) --unix /tmp/nDPIsrvd-${NSUFFIX}-distributor.sock"
|
||||
|
||||
Reference in New Issue
Block a user