FreeBSD Bugzilla – Attachment 144153 Details for
Bug 191398
[patch] www/apache24: disable sanity check on demand
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to files/apache24.in
rc-apache24.diff (text/plain), 2.33 KB, created by
Robert Schulze
on 2014-06-26 09:51:14 UTC
(
hide
)
Description:
patch to files/apache24.in
Filename:
MIME Type:
Creator:
Robert Schulze
Created:
2014-06-26 09:51:14 UTC
Size:
2.33 KB
patch
obsolete
>--- apache24.in.orig 2014-06-26 11:01:46.000000000 +0200 >+++ apache24.in 2014-06-26 11:36:43.000000000 +0200 >@@ -23,6 +23,7 @@ > # Set to yes to check for accf_http kernel > # module on start up and load if not loaded. > # apache24_fib (str): Set an altered default network view for apache >+# apache24_configcheck_disable (bool): Set to "YES" to disable sanity check on startup > > . /etc/rc.subr > >@@ -46,6 +47,7 @@ > [ -z "$apache24limits_enable" ] && apache24limits_enable="NO" > [ -z "$apache24limits_args" ] && apache24limits_args="-e -C daemon" > [ -z "$apache24_http_accept_enable" ] && apache24_http_accept_enable="NO" >+[ -z "$apache24_configcheck_disable" ] && apache24_configcheck_disable="NO" > > apache24_accf() > { >@@ -75,6 +77,7 @@ > eval apache24limits_enable="\${apache24limits_${profile}_enable:-${apache24limits_enable}}" > eval apache24limits_args="\${apache24limits_${profile}_args:-${apache24limits_args}}" > eval apache24_fib="\${apache24_${profile}_fib:-${apache24_fib}}" >+ eval apache24_configcheck_disable="\${apache24_${profile}_configcheck_disable:-${apache24_configcheck_disable}}" > eval command="\${apache24_${profile}_command:-${command}}" > eval pidfile="\${apache24_${profile}_pidfile:-${pidfile}}" > eval apache24_envvars="\${apache24_${profile}_envvars:-${envvars}}" >@@ -123,10 +126,14 @@ > apache24_accf > fi > >+if checkyesno apache24_configcheck_disable >+then >+ unset restart_precmd >+ unset reload_precmd >+fi >+ > apache24_requirepidfile() > { >- apache24_checkconfig >- > if [ ! "0`check_pidfile ${pidfile} ${command}`" -gt 1 ]; then > echo "${name} not running? (check $pidfile)." > exit 1 >@@ -147,6 +154,11 @@ > apache24_graceful() { > apache24_requirepidfile > >+ if ! checkyesno apache24_configcheck_disable >+ then >+ apache24_checkconfig >+ fi >+ > echo "Performing a graceful restart" > eval ${command} ${apache24_flags} -k graceful > } >@@ -154,13 +166,21 @@ > apache24_gracefulstop() { > apache24_requirepidfile > >+ if ! checkyesno apache24_configcheck_disable >+ then >+ apache24_checkconfig >+ fi >+ > echo "Performing a graceful stop" > eval ${command} ${apache24_flags} -k graceful-stop > } > > apache24_precmd() > { >- apache24_checkconfig >+ if ! checkyesno apache24_configcheck_disable >+ then >+ apache24_checkconfig >+ fi > > if checkyesno apache24limits_enable > then
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 191398
: 144153