Bug#396003: patch for allowing the reporting of paniclog messages only once

Vasilis Vasaitis v.vasaitis at sms.ed.ac.uk
Sun Dec 2 13:36:44 UTC 2007


  Hi,

  Attached is a patch to exim4-base.cron.daily that implements what
has been described as an acceptable solution in this bug report:

  - If $E4BCD_WATCH_PANICLOG is set to "no", no reporting is done (no
change).
  - If it is set to "yes", non-zero size paniclog is always reported
(no change again).
  - If it is set to "once" however, a non-zero paniclog is reported
only if it has changed since the last time the cron.daily script has
run; so effectively only once for each time it changes.

  To implement this the script creates a zero size file in
/var/lib/exim4 called paniclog.timestamp, which would also mean that
the exim4-base package should contain /var/lib/exim4 (but this is just
nitpicking).

  Anyway, this first iteration is mostly meant to be a proof of
concept implementation. Of course if you like it you can add it as it
is, but I'm open to suggestions on how to make it better etc.

Thanks,
Vasilis

-- 
Vasilis Vasaitis
"A man is well or woe as he thinks himself so."


-------------- next part --------------
A non-text attachment was scrubbed...
Name: exim4-base.cron.daily.diff
Type: text/x-diff
Size: 1927 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-exim4-maintainers/attachments/20071202/92a9c7ae/attachment.diff 


More information about the Pkg-exim4-maintainers mailing list