avfilter_sig --help | --version
The process id of avfilter can be overridden with -p, which also changes the pipe name to the current directory; if not using -p, the id is read from avfilter pid file.
A named pipe is used to read the response. Existence of the pipe is tested to avoid concurrent requests. When the -p option is used avfilter_sig uses ``./avfilter_sig.pipe'' as the pipe name.
The output from avfilter, read through the pipe, is displayed on stdout unless the -l option is given. In the latter case it is sent to syslog.
The signal sent is:
OnUpdateExecute avfilter_sig -l reload virus
Other (unofficial) scripts have similar reload_opt, which can be set likewise.
If avfilter_sig is not in $PATH (it is installed in ${exec_prefix}/sbin), specify its full path; (freshclam issues a system(3) call to execute it).
Mind permissions; avfilter and freshclam likely run with as different users. Setting avfilter_sig setuid ("chmod u+s") is the easiest solution. You can also "./configure --with-setuid-sig" to get that. The requirements are that avfilter_sig can read avfilter.pid and send signals to avfilter, and that avfilter can write to the pipe created by avfilter_sig.
/var/run/courier/avfilter_sig.pipe
./avfilter_sig.pipe (when using -p)
Copyright © 2014-2019 Alessandro Vesely