Needing a way of shutting clamd down cleanly I hacked Mike Cathey's clamdwatch.pl perl script to send of the commands that clamd understands. See ./clamd/session.h in the clamav sources for available commands.
eg clamdctl -q -c shutdown
See
clamdctl and
init.d/clamav scripts for use.
LICENSE
Creative Commons CC0
http://creativecommons.org/publicdomain/zero/1.0/legalcode
AUTHOR
James Sainsbury