Your message dated Wed, 09 Jul 2014 22:30:11 +0200
with message-id <[email protected]>
and subject line Bug#295547: clamav-freshclam: seems that there's no way to 
pass RC to eg. OnErrorExecute script(s)
has caused the Debian Bug report #295547,
regarding clamav-freshclam: seems that there's no way to pass RC to eg. 
OnErrorExecute script(s)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
295547: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=295547
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: clamav-freshclam
Version: 0.83-1
Severity: wishlist

hello,

I couldn't find a way to tell the script how freshclam failed, ie it's 
Return Code, other than doing a rough 'tail -15 $UpdateLogFile|mail -s...'.
So, If not already there, and I just missed it, I'd like a way to do eg.

OnErrorExecute /etc/clamav/onerrorexecute.d/err-dbvirus.sh %rc

where %rc would be the failure Return Code as doc'd in freshclam(1),
and in err-dbvirus.sh perhaps something like 

  ...
  case $1 in
    40) emsg="Unknown option passed" ;;
    50) emsg="Can't change directory" ;;
    ...
  esac
  ...
  echo |mail -s "FRESHCLAM:$HOSTNAME: $emsg" root

for sysadmins low in memory ;).


-- paolo


-- System Information
Debian Release: 3.0
Architecture: i386
[let's save paper, nothing really matters here below...]


--- End Message ---
--- Begin Message ---
Control: tag -1 wontfix

Hi,

since the original reporter is not interested in this feature anymore, and it would be rather intrusive to change the exit codes, as other programs might rely on them, I'm closing this bug now.

Best regards,
Andreas

--- End Message ---

Reply via email to