1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/mail/exilog/files/patch-exilog_agent.pl
Sergey Matveychuk 40765b8a02 Exilog is very nice utility to parse and visualize logs from multiply exim
servers.

PR:		ports/81899
Submitted by:	Vsevolod Stakhov <vsevolod@highsecure.ru>
2005-06-05 18:22:26 +00:00

16 lines
333 B
Perl

--- 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");