mirror of
https://github.com/utoni/nDPId.git
synced 2026-04-28 06:59:35 +00:00
Improved nDPIsrvd buffer bloat handling using caching.
* still allow blocking mode (with send timeout) * improved daemon start/stop test script Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
parent
f4c8d96dd9
commit
d48508b4af
7 changed files with 242 additions and 54 deletions
|
|
@ -18,13 +18,17 @@ if [ -r "/tmp/nDPId-${NSUFFIX}.pid" -o -r "/tmp/nDPIsrvd-${NSUFFIX}.pid" ]; then
|
|||
nDPIsrvd_PID="$(cat "/tmp/nDPIsrvd-${NSUFFIX}.pid" 2>/dev/null)"
|
||||
|
||||
if [ x"${nDPId_PID}" != x ]; then
|
||||
sudo kill "${nDPId_PID}"
|
||||
sudo kill "${nDPId_PID}" 2>/dev/null || true
|
||||
while ps -p "${nDPId_PID}" > /dev/null; do sleep 1; done
|
||||
rm -f "/tmp/nDPId-${NSUFFIX}.pid"
|
||||
else
|
||||
printf '%s\n' "${1} not started .." >&2
|
||||
fi
|
||||
|
||||
if [ x"${nDPIsrvd_PID}" != x ]; then
|
||||
kill "${nDPIsrvd_PID}"
|
||||
kill "${nDPIsrvd_PID}" 2>/dev/null || true
|
||||
while ps -p "${nDPIsrvd_PID}" > /dev/null; do sleep 1; done
|
||||
rm -f "/tmp/nDPIsrvd-${NSUFFIX}.pid" "/tmp/nDPIsrvd-${NSUFFIX}-collector.sock" "/tmp/nDPIsrvd-${NSUFFIX}-distributor.sock"
|
||||
else
|
||||
printf '%s\n' "${2} not started .." >&2
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue