FreeBSD Bugzilla – Attachment 211607 Details for
Bug 244092
security/py-fail2ban: Create required directoy on start
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
py-fail2ban.diff.txt (text/plain), 1.07 KB, created by
theis
on 2020-02-13 10:45:25 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
theis
Created:
2020-02-13 10:45:25 UTC
Size:
1.07 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 525920) >+++ Makefile (working copy) >@@ -2,6 +2,7 @@ > > PORTNAME= fail2ban > PORTVERSION= 0.11.1 >+PORTREVISION= 1 > CATEGORIES= security python > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > >Index: files/fail2ban.in >=================================================================== >--- files/fail2ban.in (revision 525920) >+++ files/fail2ban.in (working copy) >@@ -7,12 +7,16 @@ > # Add the following lines to /etc/rc.conf to enable fail2ban: > # fail2ban_enable="YES" > # fail2ban_flags="<set as needed>" >+# fail2ban_pidfile="<same as in fail2ban.local>" > >+# Make sure pidfile and socket point to the same directory >+ > . /etc/rc.subr > > name="fail2ban" > rcvar=fail2ban_enable > >+start_precmd="fail2ban_prestart" > command="%%PREFIX%%/bin/fail2ban-server" > command_interpreter="%%PYTHON_CMD%%" > client="%%PREFIX%%/bin/fail2ban-client" >@@ -19,6 +23,11 @@ > > extra_commands="reload jailstatus" > >+fail2ban_prestart() >+{ >+ install -d -m 0755 "$(dirname ${pidfile})" >+} >+ > load_rc_config ${name} > > #
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
theis:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 244092
: 211607