tmpfs /var/run/clamav does not exist after reboot
Bug #29571 reported by
Bart Verwilst
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clamav (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
After rebooting, clamav-daemon does not start because it can't create the socket files in /var/run/clamav, because that directory doesn't exist. The init script should first create the directory and chown it to the user that clamav runs under..
Thanks in advance!
Changed in clamav: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
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}'`"