From nobody@FreeBSD.org  Fri Mar  7 21:02:22 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5B979106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  7 Mar 2008 21:02:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 4A3658FC20
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  7 Mar 2008 21:02:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m27KxGXk028723
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 7 Mar 2008 20:59:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m27KxGvr028722;
	Fri, 7 Mar 2008 20:59:16 GMT
	(envelope-from nobody)
Message-Id: <200803072059.m27KxGvr028722@www.freebsd.org>
Date: Fri, 7 Mar 2008 20:59:16 GMT
From: Vlad <no_spam-v@ezd.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Port startup script don't get values from /etc/rc.conf (ports/www/apache13-modssl)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121479
>Category:       ports
>Synopsis:       Port startup script don't get values from /etc/rc.conf (ports/www/apache13-modssl)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 07 21:10:03 UTC 2008
>Closed-Date:    Mon May 12 14:04:36 CEST 2008
>Last-Modified:  Mon May 12 14:04:36 CEST 2008
>Originator:     Vlad
>Release:        6.3-RELEASE
>Organization:
ezd
>Environment:
FreeBSD m1.ezd3.com 6.3-RELEASE FreeBSD 6.3-RELEASE #1: Tue Feb 26 22:20:10 EST 2008 vlad@m1.ezd3.com:/usr/src/sys/i386/compile/M i386
>Description:
Hi!

When I've tried to set "apache_flags" in /etc/rc.conf, server starts (on host boot time) with default values from /usr/local/etc/rc.d/apache.sh

After manual Apache restart
# /usr/local/etc/rc.d/apache.sh restart
it gets proper values from /etc/rc.conf

I've tried in /etc/rc.conf:
apache_flags=""
apache_flags="NoFlags"

with same result.

apache+mod_ssl-1.3.39+2.8.30

Thanks.

Vlad.
>How-To-Repeat:
Reboot the server.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Mar 7 21:10:08 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121479 
State-Changed-From-To: open->feedback 
State-Changed-By: dinoex 
State-Changed-When: Mon Mar 17 14:08:22 CET 2008 
State-Changed-Why:  

in /etc/rc.conf 
apache_flags="" 

this works here as expectedm, 
check with "ps" as it shows the args passed. 

Please verify, how you see the default flags. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=121479 

From: Laurent Frigault <lfrigault@agneau.org>
To: bug-followup@FreeBSD.org, no_spam-v@ezd.com
Cc: dinoex@FreeBSD.org
Subject: Re: ports/121479: Port startup script don't get values from /etc/rc.conf (ports/www/apache13-modssl)
Date: Thu, 8 May 2008 15:13:19 +0200

 No this only works when the system is already running and you are using
 /usr/local/etc/rc.d/apache.sh start
 or
 /usr/local/etc/rc.d/apache.sh restart
 
 But it does not works when rebooting the system.
 
 Try with apache_flags="" in /etc.rc.conf
 
 Replacing apache_flags="-DSSL" with apache_flags=${apache_flags-"-DSSL"}
 in /usr/local/etc/rc.d/apache.sh seems to fix the problem.
 
 The following patch should fix the problem
 
 # diff -u files/rcng.sh.orig files/rcng.sh 
 --- files/rcng.sh.orig  2008-05-08 15:05:46.000000000 +0200
 +++ files/rcng.sh       2008-05-08 15:06:15.000000000 +0200
 @@ -14,7 +14,7 @@
  # DO NOT CHANGE THESE DEFAULT VALUES HERE
  #
  apache_enable="${apache_enable-NO}"
 -apache_flags="-DSSL"
 +apache_flags=${apache_flags-"-DSSL"}
  apache_pidfile="/var/run/httpd.pid"
  
  . %%RC_SUBR%%
 
 Regards,
 -- 
 Laurent Frigault | <url:http://www.agneau.org/>

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/121479: commit references a PR
Date: Mon, 12 May 2008 11:40:34 +0000 (UTC)

 dinoex      2008-05-12 11:40:28 UTC
 
   FreeBSD ports repository
 
   Modified files:
     www/apache13-modssl/files rcng.sh 
   Log:
   - fix custom apache_flags
   PR:             121479
   Submitted by:   Laurent Frigault
   
   Revision  Changes    Path
   1.6       +2 -2      ports/www/apache13-modssl/files/rcng.sh
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: feedback->closed 
State-Changed-By: dinoex 
State-Changed-When: Mon May 12 14:04:09 CEST 2008 
State-Changed-Why:  
committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121479 
>Unformatted:
