mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Fail2ban service support
This commit is contained in:
parent
7bab19c2cf
commit
48f5ff64d5
1 changed files with 9 additions and 0 deletions
|
@ -199,6 +199,15 @@ if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then
|
||||||
str="$str STATE='$state' CPU='0' MEM='0' RTIME='0'"
|
str="$str STATE='$state' CPU='0' MEM='0' RTIME='0'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Fail2ban
|
||||||
|
service=$FIREWALL_EXTENSION
|
||||||
|
if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then
|
||||||
|
get_srv_state $service
|
||||||
|
str="$str\nNAME='$service' SYSTEM='job scheduler' STATE='$state'"
|
||||||
|
str="$str CPU='$cpu' MEM='$mem' RTIME='$rtime'"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Defining config
|
# Defining config
|
||||||
echo -e "$str" > $tmp_file
|
echo -e "$str" > $tmp_file
|
||||||
conf=$tmp_file
|
conf=$tmp_file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue