mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
mod_backtrace is an experimental module for Apache httpd 2.x which
collects backtraces when a child process crashes. Currently it is implemented only on Linux and FreeBSD, but other platforms could be supported in the future. Requirements: Apache httpd >= 2.0.49 must be built with the --enable-exception-hook configure option and mod_so enabled. Activating mod_backtrace: 1. Load it like any other DSO: LoadModule backtrace_module modules/mod_backtrace.so 2. Enable exception hooks for modules like mod_backtrace: EnableExceptionHook On 3. Choose where backtrace information should be written. If you want backtraces from crashes to be reported some place other than the error log, use the BacktraceLog directive to specify a fully-qualified filename for the log to which backtraces will be written. Note that the web server user id (e.g., "nobody") must be able to create or append to this log file, as the log file is WWW: http://people.apache.org/~trawick/exception_hook.html PR: ports/151931 Submitted by: Frank Wall <fw at moov.de>
This commit is contained in:
parent
834b807156
commit
0574d1cb27
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264383
@ -460,6 +460,7 @@
|
||||
SUBDIR += mod_authnz_external
|
||||
SUBDIR += mod_authz_unixgroup
|
||||
SUBDIR += mod_backhand
|
||||
SUBDIR += mod_backtrace
|
||||
SUBDIR += mod_bandwidth
|
||||
SUBDIR += mod_bf
|
||||
SUBDIR += mod_blosxom
|
||||
|
43
www/mod_backtrace/Makefile
Normal file
43
www/mod_backtrace/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
# New ports collection makefile for: mod_backtrace
|
||||
# Date created: Thu Nov 4 10:08:27 CET 2010
|
||||
# Whom: Frank Wall <fw@moov.de>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mod_backtrace
|
||||
PORTVERSION= 1.0
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://people.apache.org/~trawick/ \
|
||||
http://dl.moov.de/freebsd/${PORTNAME}/
|
||||
DISTNAME= ${PORTNAME}.c
|
||||
EXTRACT_SUFX= # none
|
||||
EXTRACT_ONLY= # empty
|
||||
|
||||
MAINTAINER= fw@moov.de
|
||||
COMMENT= Collects backtraces when a child process crashes
|
||||
|
||||
LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
|
||||
|
||||
MAKE_JOBS_SAFE= yes
|
||||
|
||||
USE_APACHE= 20+
|
||||
AP_FAST_BUILD= YES
|
||||
AP_GENPLIST= YES
|
||||
AP_EXTRAS+= -lexecinfo
|
||||
AP_LIB+= ${LOCALBASE}/lib
|
||||
SHORTMODNAME= backtrace
|
||||
|
||||
WRKSRC= ${WRKDIR}
|
||||
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "*********************** PLEASE NOTE! ***********************"
|
||||
@${ECHO_MSG} "Apache httpd must be built with the --enable-exception-hook"
|
||||
@${ECHO_MSG} "configure option and mod_so enabled."
|
||||
@${ECHO_MSG} "*********************** PLEASE NOTE! ***********************"
|
||||
|
||||
do-extract:
|
||||
${MKDIR} ${WRKSRC}/
|
||||
${CP} ${DISTDIR}/${PORTNAME}.c ${WRKSRC}/
|
||||
|
||||
.include <bsd.port.mk>
|
2
www/mod_backtrace/distinfo
Normal file
2
www/mod_backtrace/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (mod_backtrace.c) = 56fd08206e5b5a2b6258dc2b48e0466010640ddac12dcc153e65c455f294e900
|
||||
SIZE (mod_backtrace.c) = 5965
|
24
www/mod_backtrace/pkg-descr
Normal file
24
www/mod_backtrace/pkg-descr
Normal file
@ -0,0 +1,24 @@
|
||||
mod_backtrace is an experimental module for Apache httpd 2.x which
|
||||
collects backtraces when a child process crashes. Currently it is
|
||||
implemented only on Linux and FreeBSD, but other platforms could be
|
||||
supported in the future.
|
||||
|
||||
Requirements: Apache httpd >= 2.0.49 must be built with the
|
||||
--enable-exception-hook configure option and mod_so enabled.
|
||||
|
||||
Activating mod_backtrace:
|
||||
|
||||
1. Load it like any other DSO:
|
||||
LoadModule backtrace_module modules/mod_backtrace.so
|
||||
|
||||
2. Enable exception hooks for modules like mod_backtrace:
|
||||
EnableExceptionHook On
|
||||
|
||||
3. Choose where backtrace information should be written.
|
||||
If you want backtraces from crashes to be reported some place other
|
||||
than the error log, use the BacktraceLog directive to specify a
|
||||
fully-qualified filename for the log to which backtraces will be
|
||||
written. Note that the web server user id (e.g., "nobody") must
|
||||
be able to create or append to this log file, as the log file is
|
||||
|
||||
WWW: http://people.apache.org/~trawick/exception_hook.html
|
Loading…
Reference in New Issue
Block a user