View | Details | Raw Unified | Return to bug 236017
Collapse All | Expand All

(-)files/fail2ban.in (-4 / +8 lines)
Lines 8-21 Link Here
8
# fail2ban_enable="YES"
8
# fail2ban_enable="YES"
9
# fail2ban_flags="<set as needed>"
9
# fail2ban_flags="<set as needed>"
10
10
11
fail2ban_enable=${fail2ban_enable-"NO"}
12
fail2ban_pidfile=${fail2ban_pidfile-"/var/run/fail2ban/fail2ban.pid"}
13
14
. /etc/rc.subr
11
. /etc/rc.subr
15
12
16
name="fail2ban"
13
name="fail2ban"
17
rcvar=fail2ban_enable
14
rcvar=fail2ban_enable
18
pidfile="${fail2ban_pidfile}"
19
15
20
command="%%PREFIX%%/bin/fail2ban-server"
16
command="%%PREFIX%%/bin/fail2ban-server"
21
command_interpreter="%%PYTHON_CMD%%"
17
command_interpreter="%%PYTHON_CMD%%"
Lines 25-30 Link Here
25
21
26
load_rc_config ${name}
22
load_rc_config ${name}
27
23
24
#
25
# DO NOT CHANGE THESE DEFAULT VALUES HERE
26
# SET THEM IN THE /etc/rc.conf FILE
27
#
28
29
fail2ban_enable=${fail2ban_enable-"NO"}
30
pidfile=${fail2ban_pidfile-"/var/run/fail2ban/fail2ban.pid"}
31
28
start_cmd="${client} ${fail2ban_flags} start"
32
start_cmd="${client} ${fail2ban_flags} start"
29
stop_cmd="${client} ${fail2ban_flags} stop"
33
stop_cmd="${client} ${fail2ban_flags} stop"
30
reload_cmd="${client} ${fail2ban_flags} reload"
34
reload_cmd="${client} ${fail2ban_flags} reload"

Return to bug 236017