Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160350 - net-www/apache-2.0.59-r2 and net-www/apache-2.2.3-r1 init script not working
Summary: net-www/apache-2.0.59-r2 and net-www/apache-2.2.3-r1 init script not working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-05 17:50 UTC by Pierre Guinoiseau
Modified: 2007-05-23 16:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.