Bug 101746 - [update port] www/apache13
Summary: [update port] www/apache13
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: Andrey A. Chernov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-10 08:30 UTC by Alexander Logvinov
Modified: 2006-08-10 12:52 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 Alexander Logvinov 2006-08-10 08:30:16 UTC
  Disallow starting apache from rc.d script some times

Fix: From ports/www/apache13-modssl/files/rcng.sh
 


pidfile="${apache_pidfile}"
 
 -start_cmd="echo \"Starting ${name}.\"; /usr/bin/limits -U www ${command} ${apache_flags} ${command_args}"
 +start_precmd="`/usr/bin/limits -e -U www`"
 
  run_rc_command "$1"--J0Xv7GM3qdmC2XYy1ifat7isJDQQzLCTUJv1MXprg7x4HwjF
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- apacheold.sh   Tue Feb 21 05:47:46 2006
+++ apache.sh  Thu Aug 10 17:13:24 2006
@@ -27,6 +27,6 @@
How-To-Repeat: 
# /usr/local/etc/rc.d/apache.sh start
Starting apache.
# /usr/local/etc/rc.d/apache.sh start
Starting apache.
# /usr/local/etc/rc.d/apache.sh start
Starting apache.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-08-10 08:30:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ache

Over to maintainer
Comment 2 Andrey A. Chernov freebsd_committer freebsd_triage 2006-08-10 08:32:21 UTC
State Changed
From-To: open->feedback

1) I don't understand the problem. 
2) This fix is wrong in anycase, it set limits for _all_ scripts running  
after apache.
Comment 3 Alexander Logvinov 2006-08-10 09:06:00 UTC
Hello.

>1) I don't understand the problem. 
  Another machine with www/apache13-modssl:

# /usr/local/etc/rc.d/apache.sh start
Starting apache.
# /usr/local/etc/rc.d/apache.sh start
apache already running? (pid=4834).

  But with www/apache13 I can start apache many times. Try it.

>2) This fix is wrong in anycase, it set limits for _all_ scripts running after apache.
  I've just got this fix from ports/www/apache13-modssl/files/rcng.sh . Is this script wrong too?

-- 
WBR
Comment 4 Andrey A. Chernov freebsd_committer freebsd_triage 2006-08-10 09:14:37 UTC
On Thu, Aug 10, 2006 at 06:06:00PM +1000, Alexander Logvinov wrote:
> # /usr/local/etc/rc.d/apache.sh start
> Starting apache.
> # /usr/local/etc/rc.d/apache.sh start
> apache already running? (pid=4834).

Just don't do that or suggest right fix. Perhaps ask rcNG people. I don't
understand rcNG fully.

> >2) This fix is wrong in anycase, it set limits for _all_ scripts running after apache.
>   I've just got this fix from ports/www/apache13-modssl/files/rcng.sh . Is this script wrong too?

Yes. You should fill bug report to apache13-modssl maintainer, describing
the problem and suggesting fix from apache13 port.

-- 
http://ache.pp.ru/
Comment 5 Andrey A. Chernov freebsd_committer freebsd_triage 2006-08-10 12:52:25 UTC
State Changed
From-To: feedback->closed

Fixed in 1.3.37_1