On 10 Jan 1999, Russell Nelson wrote:
> Peter Samuel writes:
> > $now = time;
> > $then = $now - 300;
> > $tmp = "/tmp/mailq.$$";
> >
> > open(LOG, "/var/log/mail");
> > open(ZOVERALL, "| /pkgs/bin/matchup 5>/dev/null | /pkgs/bin/zoverall > $tmp");
>
> Not to look a gift horse in the mouth, but what if the script doesn't
> get run exactly every five minutes? Also, oughtn't you keep track of
> the leftovers that get printed to FD 5?
Dunno. The perl program grabs the last 5 minutes worth of logs
regardless of when it is run. This particular site is internal to the
company and only delivers locally to our "external" gateway, where
"external" means the rest of the company and the world. Therefore we
almost NEVER get incomplete deliveries, so it's not that much of a
concern to me yet. I'll have a think and see what I can do about
them.
>
> > open(PROCESS, "/var/qmail/bin/qmailq check |");
>
> What program is this?
It's Harald's original startup script, but modified to use
daemontools. It's not quite ready for prime time yet but I plan to do
some work on it soon and release it. It contains a few hacks to get it
to work under SCO as well as Solaris and Linux. I'm thinking of an
autoconf system that adds the necessary hooks for different OS
flavours at install time.
FYI for some reason testfilelock does not want to work under SCO.
Regards
Peter
----------
Peter Samuel [EMAIL PROTECTED]
Technical Consultant or at present:
Uniq Professional Services, [EMAIL PROTECTED]
a division of X-Direct Pty Ltd
Phone: +61 2 9206 3410 Fax: +61 2 9281 1301
"If you kill all your unhappy customers, you'll only have happy ones left"