I've confirmed it and made this following change:
[...]
start)
mkdir -p /var/run/clamav
chown clamav:clamav /var/run/clamav
if [ -z "$RUN_SUPERVISED" ] ; then
[...]
However, it would be more correct to get the user who'll run clamav from /etc/clamav/clamd.conf, and then chown to him.Like:
I've confirmed it and made this following change:
[...]
start)
mkdir -p /var/run/clamav
chown clamav:clamav /var/run/clamav
if [ -z "$RUN_SUPERVISED" ] ; then
[...]
However, it would be more correct to get the user who'll run clamav from /etc/clamav/ clamd.conf, and then chown to him.Like:
USER="`grep ^User $CLAMAVCONF | awk '{print $2}'`"