From 40765b8a022abb87566e53f11ee455051770659c Mon Sep 17 00:00:00 2001 From: Sergey Matveychuk Date: Sun, 5 Jun 2005 18:22:26 +0000 Subject: Exilog is very nice utility to parse and visualize logs from multiply exim servers. PR: ports/81899 Submitted by: Vsevolod Stakhov --- mail/exilog/files/exilog.sh | 30 ++++++++++++++++++++++++++++++ mail/exilog/files/htaccess | 3 +++ mail/exilog/files/patch-exilog_agent.pl | 15 +++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 mail/exilog/files/exilog.sh create mode 100644 mail/exilog/files/htaccess create mode 100644 mail/exilog/files/patch-exilog_agent.pl (limited to 'mail/exilog/files') diff --git a/mail/exilog/files/exilog.sh b/mail/exilog/files/exilog.sh new file mode 100644 index 000000000000..7cdb69601691 --- /dev/null +++ b/mail/exilog/files/exilog.sh @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Add the following lines to /etc/rc.conf to enable exilog agent: +# +#exilog_enable="YES" + +. %%RC_SUBR%% + +name=exilog +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/exilog_agent.pl +pidfile=/var/run/exilog.pid +required_files=%%PREFIX%%/etc/exilog.conf + +# read settings, set default values +load_rc_config $name +: ${exilog_enable="NO"} + +case $1 in + stop) + kill `cat $pidfile` + rm -f $pidfile + ;; + *) + run_rc_command "$1" + ;; +esac diff --git a/mail/exilog/files/htaccess b/mail/exilog/files/htaccess new file mode 100644 index 000000000000..b9817ba17f79 --- /dev/null +++ b/mail/exilog/files/htaccess @@ -0,0 +1,3 @@ +Options +ExecCGI +AddHandler cgi-script .pl +DirectoryIndex exilog_cgi.pl diff --git a/mail/exilog/files/patch-exilog_agent.pl b/mail/exilog/files/patch-exilog_agent.pl new file mode 100644 index 000000000000..4a970498a1a5 --- /dev/null +++ b/mail/exilog/files/patch-exilog_agent.pl @@ -0,0 +1,15 @@ +--- exilog_agent.pl.orig Sat Jun 4 19:36:03 2005 ++++ exilog_agent.pl Sat Jun 4 19:39:00 2005 +@@ -46,7 +46,11 @@ + }; + + setsid(); +- ++ my $me = "exilog"; ++ my $pidfile = "/var/run/".$me.".pid"; ++ open (PID,">$pidfile"); ++ print PID $$; ++ close (PID); + # dup STDOUT/ERR + open(STDOUT, ">&LOG"); + open(STDERR, ">&LOG"); -- cgit v1.2.3