Bug 90708 - Fixing for apache starting shell script ?
Summary: Fixing for apache starting shell script ?
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Clement Laforet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-20 20:00 UTC by Joe Horn
Modified: 2006-01-15 18:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Horn 2005-12-20 20:00:17 UTC
I installed Apache 2.2 ( /usr/ports/www/apache22 ) on this machine.

In some day past , I added this line in /boot/loader.conf :
  accf_http_load="YES"

But I found that newer version ( apache-2.2.0_4 ) support this option in /etc/rc.conf :
  apache22_http_accept_enable="YES"
So I added, and remove the line below in /boot/loader.conf .

After I use this command for starting apache :
  /usr/local/etc/rc.d/apache22.sh start

The screen shows these messages :
  kldstat: illegal option -- q
  usage: kldstat [-v] [-i id] [-n name]
  kldload: can't load accf_http: File exists
  Performing sanity check on apache22 configuration:
  Syntax OK
  kldstat: illegal option -- q
  usage: kldstat [-v] [-i id] [-n name]
  kldload: can't load accf_http: File exists
  Stopping apache22.
  Waiting for PIDS: 57769.
  kldstat: illegal option -- q
  usage: kldstat [-v] [-i id] [-n name]
  kldload: can't load accf_http: File exists
  Starting apache22.

Because the options '-q' and '-m' are supported in FreeBSD6 , but not in FreeBSD5 .
I modified this line in /usr/local/etc/rc.d/apache22.sh :
        if ! /sbin/kldstat -q -m accf_http
with :
        if ! /sbin/kldstat -n accf_http

Ths messages shown after the command '/usr/local/etc/rc.d/apache22.sh start' seems to be OK now :
  Id Refs Address    Size     Name
   2    1 0xc09fe000 2280     accf_http.ko
  Performing sanity check on apache22 configuration:
  Syntax OK
  Id Refs Address    Size     Name
   2    1 0xc09fe000 2280     accf_http.ko
  Stopping apache22.
  Waiting for PIDS: 4588.
  Id Refs Address    Size     Name
   2    1 0xc09fe000 2280     accf_http.ko
  Starting apache22.

My solution is correct, isn't it?
Thanks, and sorry for my poor english...
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-12-20 20:20:59 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clement

Over to maintainer
Comment 2 Clement Laforet freebsd_committer freebsd_triage 2006-01-15 18:42:22 UTC
State Changed
From-To: open->closed

A fix has been committed, thanks!