[Mimedefang] CLAMAV: pid files, sockets, and init scripts

Steffen Kaiser skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Tue Aug 3 02:52:30 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 2 Aug 2010, Gary Funck wrote:

> 2) How does MimeDefang deal with the situation that
> clamd socket file is deleted by either clamd when
> it shuts down, or the init script when it executes
> a "stop" operation?

If you look at entity_contains_virus_clamd() in mimedefang.pl,
you'll see that the socket is opened for each request.

> 3) Per the bug report above, the clamav developer states:
>
>    "clamdscan --reload will reload the DB, and so
>    will SIGUSR2.  There is no command to reload the
>    config file, which is probably what the initscript
>    wants to do with reload."
>
> Is there a Linux/Unix guideline that states something
> along the lines that a init.d controlled service
> must interpret "reload" narrowly to only reload the
> config. file, or is it acceptable to also clear
> caches, reload databases, etc.?

http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

"
reload  cause the configuration of the service to be reloaded without 
actually stopping and restarting the service
"
you are free to argue, whether its databases are "configuration", IMHO.
Same for to clear cache.

Regards,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBTFe8sUgddVksjRnHAQKtFgf/fHoOUBvra9dA864FEjLms/0bOgyKHqJV
HFSiVUJfrtPn60bvWtnDZXkx8rxQhMR5iC7iH//4cKa1Wl3U6tzXAwPlwl5DaLkd
f98jeVssvIOg1mMBYhS8yythEOKz78k60CcWH76q/BYvbpYdYZJUGX1UHHvGnuB2
fxTPNjf5bPc9rM0wbGFtRECUXtsTbE9ET/gO7ENaMkLwgNnUuusXrujZn60nDt4j
s+wWzw2QTlulgfVMaLXfcWck92kon+4ZjU1/Wecl6scP2nxLglgmA0QSc7IpPmFN
h35MUDio50uEdZL+QPLH1byLbXt2KuMT4vvM+Iui6/+m1FN2Pvn4og==
=aaLc
-----END PGP SIGNATURE-----



More information about the MIMEDefang mailing list