Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 160350

Summary: net-www/apache-2.0.59-r2 and net-www/apache-2.2.3-r1 init script not working
Product: Gentoo Linux Reporter: Pierre Guinoiseau <geekounet>
Component: New packagesAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: apache-bugs
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pierre Guinoiseau 2007-01-05 17:50:05 UTC
Hi, the init script of net-www/apache-2.0.59-r2 and net-www/apache-2.2.3-r1 does not start under Gentoo/FreeBSD and shows this error :

# /etc/init.d/apache2 start
 * Caching service dependencies ...                                                                                                                                           [ ok ]
 * Apache2 has detected a syntax error in your configuration files: 
Syntax OK
 * ERROR:  apache2 failed to start 

The problem comes from the use of the -u option with env, that is not present is his freebsd version, at line 27 of the script :
if [[ "${save}" == "0" ]]; then
  unset_vars="${unset_vars} -u ${env_var}"
fi
...
env ${unset_vars} $@

A solution would be to put back the env stuff from the old script.


Pierre Guinoiseau
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-05-23 16:58:28 UTC
The initscripts of apache-2.2.4* should be *BSD compatible now.