ipset: return HUP reload

This commit is contained in:
bol-van
2025-01-24 11:39:13 +03:00
parent 2ff6ec03aa
commit 02c76a4fb6
5 changed files with 20 additions and 0 deletions

View File

@@ -267,3 +267,15 @@ getipban()
_get_ipban
return 0
}
hup_zapret_daemons()
{
echo forcing zapret daemons to reload their hostlist
if exists killall; then
killall -HUP tpws nfqws dvtws 2>/dev/null
elif exists pkill; then
pkill -HUP ^tpws$ ^nfqws$ ^dvtws$
else
echo no mass killer available ! cant HUP zapret daemons
fi
}