diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2012-11-18 16:33:31 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2012-11-18 16:33:31 +0000 |
commit | f81193cbbfbd47aa2604b8031b0f7f599445ac20 (patch) | |
tree | 1ffb9d9fff08f721f8e673e137d247bc6e798adc /www/apache22/files | |
parent | 36ecb8f48195ff40a7717440c1b733cfc18f1ed9 (diff) |
Fix rc.d script to support systems before and after ${name}_fib is introduced
into rc.subr. Bump PORTREVISION.
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=307542
Diffstat (limited to 'www/apache22/files')
-rw-r--r-- | www/apache22/files/apache22.in | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/www/apache22/files/apache22.in b/www/apache22/files/apache22.in index d2ed50ce07c9..b2ac27483605 100644 --- a/www/apache22/files/apache22.in +++ b/www/apache22/files/apache22.in @@ -47,7 +47,6 @@ envvars="%%PREFIX%%/sbin/envvars" [ -z "$apache22limits_enable" ] && apache22limits_enable="NO" [ -z "$apache22limits_args" ] && apache22limits_args="-e -C daemon" [ -z "$apache22_http_accept_enable" ] && apache22_http_accept_enable="NO" -[ -z "$apache22_fib" ] && apache22_fib="NO" apache22_accf() { @@ -174,10 +173,14 @@ apache22_precmd() } apache22_checkfib () { - $SYSCTL net.fibs >/dev/null 2>&1 - ret=$? - [ $ret -gt 0 ] && return 0 - if [ "x$apache22_fib" != "xNO" ] + if command -v check_namevarlist > /dev/null 2>&1; then + check_namevarlist fib && return 0 + fi + + $SYSCTL net.fibs >/dev/null 2>&1 || return 0 + + apache22_fib={apache22_fib:-"NONE"} + if [ "x$apache22_fib" != "xNONE" ] then command="/usr/sbin/setfib -F ${apache22_fib} ${command}" else |