Clamd fails on reboot

Arthur Dent misc.lists at blueyonder.co.uk
Wed Jul 20 10:17:09 UTC 2011


Hello All,

When i do a reboot (about once per month) I carefully check all the
essential services are running (I especially needed to do this as
systemd was, until now, not starting sendmail - a bug that is now
fixed).

Clamd will not start after a reboot. A little investigation reveals that
it won't start because it tries to create a pid file
in /var/run/clamd.clamd/ - but /var/run/clamd.clamd/ does not exist.

mkdir /var/run/clamd.clamd && chown clamd:clamd /var/run/clamd.clamd/
will allow the service to be started with no problems.

The next reboot and... poof... /var/run/clamd.clamd/ is gone again!

I have grepped the whole of /etc/* to see if there are any references to
this directory with the only entries being the sensible ones
in /etc/init.d/clamd-wrapper.

In that init script the "stop" stanza does have the following command:
	"[ $RETVAL -eq 0 ] && rm -f $lockfile"
but "$lockfile" refers to
lockfile=/var/lock/subsys/clamd.${CLAMD_SERVICE}

There are no other "rm" commands.

So what deletes the /var/run/clamd.clamd/ directory on reboot?

Thanks in advance

Mark



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20110720/baebc087/attachment.bin 


More information about the users mailing list