[bug-notifications] [apache2 0004793]: Apache2 init script doesn't support use of different config file

Mantis Bug Tracker noreply at opencsw.org
Mon Jul 4 03:08:25 CEST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4793 
====================================================================== 
Reported By:                AirOnSkin
Assigned To:                bwalton
====================================================================== 
Project:                    apache2
Issue ID:                   4793
Category:                   regular use
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2011-06-24 01:33 CEST
Last Modified:              2011-07-04 03:08 CEST
====================================================================== 
Summary:                    Apache2 init script doesn't support use of different
config file
Description: 
The OpenCSW Apache2 init script under /etc/opt/csw/init.d/cswapache2 does
not support starting the server with a different config file defined with
variable CONF_FILE.

The CONF_FILE variable is only used to test if the apache config exists
and is a regular file.

Editing the last line in the script and changing it from:
exec $APACHECTL -k $cmd 2>&1
to
exec $APACHECTL -f $CONF_FILE -k $cmd 2>&1

solves the problem.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0003773 svc method script does not use config f...
====================================================================== 

---------------------------------------------------------------------- 
 (0009179) bwalton (manager) - 2011-07-04 03:08
 https://www.opencsw.org/mantis/view.php?id=4793#c9179 
---------------------------------------------------------------------- 
Test packages available here:
http://buildfarm.opencsw.org/experimental.html#apache2



More information about the bug-notifications mailing list