Re: Clamd fails on reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux