| 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 packages | Assignee: | 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: | --- | |
The initscripts of apache-2.2.4* should be *BSD compatible now. |
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