daemon.sh: cat nDPId / nDPIsrvd log on failure

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2022-10-09 19:10:54 +02:00
parent 4654faf381
commit 2ede930eec

View File

@@ -55,4 +55,9 @@ else
test ${RETVAL} -eq 0 && printf '%s\n' "You may now run examples e.g.: $(realpath --relative-to="$(pwd)" $(dirname "${0}")/../examples/py-flow-info/flow-info.py) --unix ${NROOT}/nDPIsrvd-${NSUFFIX}-distributor.sock"
fi
if [ ${RETVAL} -ne 0 ]; then
test -r "${NROOT}/nDPIsrvd.log" && cat "${NROOT}/nDPIsrvd.log"
test -r "${NROOT}/nDPId.log" && cat "${NROOT}/nDPId.log"
fi
exit ${RETVAL}