Clamd fails on reboot

Arthur Dent misc.lists at blueyonder.co.uk
Wed Jul 20 11:59:41 UTC 2011


On Wed, 2011-07-20 at 07:41 -0400, Genes MailLists wrote:
> On 07/20/2011 06:17 AM, Arthur Dent wrote:
> 
> > 
> > There are no other "rm" commands.
> > 
> > So what deletes the /var/run/clamd.clamd/ directory on reboot?
> > 
> 
> 
>   I wonder if you should look for what should be creating it instead -
> because of the fact that /run = /var/run is now tmpfs.
> 
>   gene

Good point.

Well I attach the whole of the init script to this email in case anyone
can see any problems - but the key parts are:

CLAMD_PIDFILE=/var/run/clamd.${CLAMD_SERVICE}/clamd.pid

and 

start () {
	echo -n $"Starting $prog: "
	daemon --pidfile=${CLAMD_PIDFILE} \
	    exec -a $procname /usr/sbin/clamd \
	    ${CLAMD_CONFIGFILE:+-c $CLAMD_CONFIGFILE} ${CLAMD_OPTIONS} --pid ${CLAMD_PIDFILE}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

Should I put a "touch $PIDFILE" in there? Or would I also need a mkdir
command?

This is a Fedora yum package. Shouldn't this just work?

Thanks for your help so far...

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/638bffb3/attachment-0001.bin 


More information about the users mailing list