FreeBSD Bugzilla – Attachment 205253 Details for
Bug 238739
www/nginx www/nginx-devel: add support for FreeBSD accept filters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
nginx.in diff (for both www/nginx and www/nginx-devel)
nginx.in.diff (text/plain), 2.49 KB, created by
Jeremy Chadwick
on 2019-06-21 08:53:51 UTC
(
hide
)
Description:
nginx.in diff (for both www/nginx and www/nginx-devel)
Filename:
MIME Type:
Creator:
Jeremy Chadwick
Created:
2019-06-21 08:53:51 UTC
Size:
2.49 KB
patch
obsolete
>Index: nginx/files/nginx.in >=================================================================== >--- nginx/files/nginx.in (revision 504769) >+++ nginx/files/nginx.in (working copy) >@@ -21,6 +21,9 @@ > # Extra flags passed to start command. > # nginxlimits_args (str): Default to "-e -U %%WWWOWN%%" > # Arguments of pre-start limits run. >+# nginx_http_accept_enable (bool): Set to "NO" by default. >+# Set to yes to check for accf_http kernel module >+# on start-up and load if not loaded. > > . /etc/rc.subr > >@@ -44,6 +47,7 @@ extra_commands="reload configtest upgrade graceful > [ -z "$nginx_enable" ] && nginx_enable="NO" > [ -z "$nginxlimits_enable" ] && nginxlimits_enable="NO" > [ -z "$nginxlimits_args" ] && nginxlimits_args="-e -U %%WWWOWN%%" >+[ -z "$nginx_http_accept_enable" ] && nginx_http_accept_enable="NO" > > load_rc_config $name > >@@ -125,6 +129,12 @@ nginx_precmd() > { > nginx_checkconfig > >+ if checkyesno nginx_http_accept_enable >+ then >+ /sbin/kldstat -qm accf_http || /sbin/kldload accf_http || return $? >+ /sbin/kldstat -qm accf_data || /sbin/kldload accf_data || return $? >+ fi >+ > if checkyesno nginxlimits_enable > then > eval `/usr/bin/limits ${nginxlimits_args}` 2>/dev/null >Index: nginx-devel/files/nginx.in >=================================================================== >--- nginx-devel/files/nginx.in (revision 504769) >+++ nginx-devel/files/nginx.in (working copy) >@@ -21,6 +21,9 @@ > # Extra flags passed to start command. > # nginxlimits_args (str): Default to "-e -U %%WWWOWN%%" > # Arguments of pre-start limits run. >+# nginx_http_accept_enable (bool): Set to "NO" by default. >+# Set to yes to check for accf_http kernel module >+# on start-up and load if not loaded. > > . /etc/rc.subr > >@@ -44,6 +47,7 @@ extra_commands="reload configtest upgrade graceful > [ -z "$nginx_enable" ] && nginx_enable="NO" > [ -z "$nginxlimits_enable" ] && nginxlimits_enable="NO" > [ -z "$nginxlimits_args" ] && nginxlimits_args="-e -U %%WWWOWN%%" >+[ -z "$nginx_http_accept_enable" ] && nginx_http_accept_enable="NO" > > load_rc_config $name > >@@ -125,6 +129,12 @@ nginx_precmd() > { > nginx_checkconfig > >+ if checkyesno nginx_http_accept_enable >+ then >+ /sbin/kldstat -qm accf_http || /sbin/kldload accf_http || return $? >+ /sbin/kldstat -qm accf_data || /sbin/kldload accf_data || return $? >+ fi >+ > if checkyesno nginxlimits_enable > then > eval `/usr/bin/limits ${nginxlimits_args}` 2>/dev/null
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
Actions:
View
|
Diff
Attachments on
bug 238739
:
205253
|
205256