|
Lines 13-18
Link Here
|
| 13 |
# Set it to "YES" to enable apache22 |
13 |
# Set it to "YES" to enable apache22 |
| 14 |
# apache22_profiles (str): Set to "" by default. |
14 |
# apache22_profiles (str): Set to "" by default. |
| 15 |
# Define your profiles here. |
15 |
# Define your profiles here. |
|
|
16 |
# apache22_profile_directives (bool): Set to "NO" by default. |
| 17 |
# Set to "YES" to include a profile_* |
| 18 |
# directive on the httpd command line. |
| 16 |
# apache22limits_enable (bool):Set to "NO" by default. |
19 |
# apache22limits_enable (bool):Set to "NO" by default. |
| 17 |
# Set it to yes to run `limits $limits_args` |
20 |
# Set it to yes to run `limits $limits_args` |
| 18 |
# just before apache starts. |
21 |
# just before apache starts. |
|
Lines 43-48
Link Here
|
| 43 |
required_files=%%PREFIX%%/etc/apache22/httpd.conf |
46 |
required_files=%%PREFIX%%/etc/apache22/httpd.conf |
| 44 |
|
47 |
|
| 45 |
[ -z "$apache22_enable" ] && apache22_enable="NO" |
48 |
[ -z "$apache22_enable" ] && apache22_enable="NO" |
|
|
49 |
[ -z "$apache22_profile_directives" ] && apache22_profile_directives="NO" |
| 46 |
[ -z "$apache22limits_enable" ] && apache22limits_enable="NO" |
50 |
[ -z "$apache22limits_enable" ] && apache22limits_enable="NO" |
| 47 |
[ -z "$apache22limits_args" ] && apache22limits_args="-e -C daemon" |
51 |
[ -z "$apache22limits_args" ] && apache22limits_args="-e -C daemon" |
| 48 |
[ -z "$apache22_http_accept_enable" ] && apache22_http_accept_enable="NO" |
52 |
[ -z "$apache22_http_accept_enable" ] && apache22_http_accept_enable="NO" |
|
Lines 84-89
Link Here
|
| 84 |
eval apache22limits_enable="\${apache22limits_${profile}_enable:-${apache22limits_enable}}" |
88 |
eval apache22limits_enable="\${apache22limits_${profile}_enable:-${apache22limits_enable}}" |
| 85 |
eval apache22limits_args="\${apache22limits_${profile}_args:-${apache22limits_args}}" |
89 |
eval apache22limits_args="\${apache22limits_${profile}_args:-${apache22limits_args}}" |
| 86 |
eval apache22_fib="\${apache22_${profile}_fib:-${apache22_fib}}" |
90 |
eval apache22_fib="\${apache22_${profile}_fib:-${apache22_fib}}" |
|
|
91 |
case "${apache22_profile_directives}" in |
| 92 |
[Yy][Ee][Ss]) |
| 93 |
apache22_flags="-Dprofile_${profile} ${apache22_flags}" |
| 94 |
;; |
| 95 |
*) |
| 96 |
;; |
| 97 |
esac |
| 87 |
apache22_flags="-f ${apache22_configfile} -c \"PidFile ${pidfile}\" ${apache22_flags}" |
98 |
apache22_flags="-f ${apache22_configfile} -c \"PidFile ${pidfile}\" ${apache22_flags}" |
| 88 |
else |
99 |
else |
| 89 |
echo "$0: extra argument ignored" |
100 |
echo "$0: extra argument ignored" |