Bug 66451 - www/mod_throttle doesn't preserve its runtime information
Summary: www/mod_throttle doesn't preserve its runtime information
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: Anders Nordby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-10 12:40 UTC by fmysh
Modified: 2004-06-03 14:08 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1004 bytes, patch)
2004-05-10 12:40 UTC, fmysh
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fmysh 2004-05-10 12:40:13 UTC
	www/mod_throttle can't preserve its runtime information across
	shutdown and restarts because the runtime directory is defined 
	as "logs/..." in mod_throttle.c, which doesn't fit with FreeBSD's
	Apache directory layout.

Fix: Use /var/run/mod_throttle as a runtime directory.


-- Makefile.orig       Mon May 10 16:03:21 2004
+++ Makefile    Mon May 10 19:49:12 2004
@@ -21,6 +21,8 @@

 DOCS=          CHANGES.txt LICENSE.txt index.shtml

+RUNTIMEDIR=    /var/run/mod_throttle
+
 do-build:
        @cd ${WRKSRC} && \
        ${APXS} -c mod_throttle.c
@@ -33,6 +35,8 @@
        ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/mod_throttle/
 .endfor
 .endif
+       ${MKDIR} ${RUNTIMEDIR}
+       ${CHOWN} -R www:www ${RUNTIMEDIR}
        ${CAT} ${PKGMESSAGE}

 .include <bsd.port.mk>
How-To-Repeat: 	Restart httpd.
Comment 1 Kirill Ponomarev freebsd_committer freebsd_triage 2004-05-10 12:48:46 UTC
Responsible Changed
From-To: freebsd-ports-bugs->anders

Over to maintainer.
Comment 2 Anders Nordby freebsd_committer freebsd_triage 2004-06-03 14:08:11 UTC
State Changed
From-To: open->closed

Committed, thanks!