support HUP in tpws for hostlist reload

This commit is contained in:
bolvan
2018-06-06 22:41:52 +03:00
parent 304da3fc2f
commit d6324dfb46
6 changed files with 4 additions and 0 deletions

View File

@@ -22,3 +22,6 @@ if test $dlsize -lt 204800; then
fi
(cut -s -f2 -d';' $ZREESTR | grep -a . | sed -re 's/^\*\.(.+)$/\1/' | awk '{ print tolower($0) }' ; cat $ZUSERLIST ) | sort -u >$ZHOSTLIST
rm -f $ZREESTR
# force tpws to reload if its running
killall -HUP tpws 2>/dev/null