Re: Clamd fails on reboot

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

 



On Wed, 2011-07-20 at 16:11 +0100, Arthur Dent wrote:

> For the benefit of the archives this is what now works for me:
> 
> #============8<===================================================
> # In the definitions section:
> CLAMD_PIDDIR=/var/run/clamd.${CLAMD_SERVICE}
> 
> # and in the "start" stanza:
> 
>  if [ ! -d $CLAMD_PIDDIR ] ; then
>          mkdir $CLAMD_PIDDIR && chown clamd:clamd $CLAMD_PIDDIR
>       fi
> #============8<===================================================

For those who aren't following the bug
https://bugzilla.redhat.com/show_bug.cgi?id=723544 Apparently the
correct solution to the problem of /var/run now being tempfs (and
therefore wiped clean with each reboot) is to create a /etc/tmpfiles.d
file with instructions on how to create the directory with the
appropriate permissions. This simply involves (for me) creating
a /etc/tmpfiles.d/clamd.conf file with the following line in it:

d /var/run/clamd.clamd 0700 clamd clamd -

At reboot the directory /var/run/clamd.clamd/ is then created with 0700
permissions and clamd:clamd ownership. The clamd package will then start
properly.

I hope that helps anyone else suffering the same problem.

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