Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: RPM doesn't create /var/run/amavisd
https://bugzilla.redhat.com/show_bug.cgi?id=696725
Summary: RPM doesn't create /var/run/amavisd Product: Fedora Version: 15 Platform: Unspecified OS/Version: Unspecified Status: NEW Severity: medium Priority: unspecified Component: amavisd-new AssignedTo: steve@silug.org ReportedBy: nightbox@hotmail.com QAContact: extras-qa@fedoraproject.org CC: steve@silug.org, fedora-perl-devel-list@redhat.com, kanarip@kanarip.com Classification: Fedora Story Points: ---
Description of problem: The RPM doesn't create /var/run/amavisd, the amvaisd.pid file gets created here at runtime. This directory needs to be created with g+w permissions with group amavis for this package to work correctly.
Version-Release number of selected component (if applicable): amavisd-new-2.6.4-3.fc15.noarch
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #1 from Trever Adams nightbox@hotmail.com 2011-04-16 14:04:43 EDT --- It appears that every time amavis shuts down, it erases /var/run/amavisd.
I do not know what the proper solution is, but for now I am editing /etc/rc.d/init.d/amavisd, placing the following right after RETVAL=0 mkdir /var/run/amavisd chgrp amavis /var/run/amavisd chmod g+w /var/run/amavisd
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
Paul Howarth paul@city-fan.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |paul@city-fan.org
--- Comment #2 from Paul Howarth paul@city-fan.org 2011-04-18 04:48:54 EDT --- In Fedora 15, /var/run and /var/lock are tmpfs filesystems and hence are cleared at every reboot. All packages that maintain files/directories within those directories need to take this into account. Creating them in the initscript is one option, and dropping a file into /etc/tmpfiles.d to get systemd to do it would be another.
See: http://fedoraproject.org/wiki/Features/var-run-tmpfs
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #3 from Trever Adams nightbox@hotmail.com 2011-04-18 09:01:27 EDT --- Is there anyway to get a proper fix in the RPM package?
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #4 from Trever Adams nightbox@hotmail.com 2011-05-27 14:06:34 EDT --- Created attachment 501354 --> https://bugzilla.redhat.com/attachment.cgi?id=501354 tmpfile.d file
The fix seems to be to place this in /etc/tmpfile.d from the RPM. Is it possible to get this added so that things work properly out of the box? Thank you.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
John Griffiths fedora.jrg01@grifent.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fedora.jrg01@grifent.com
--- Comment #5 from John Griffiths fedora.jrg01@grifent.com 2011-06-06 01:05:42 EDT --- amavisd-new, clamd.amavid, and postfix is a common email configuration. Not sure how something like this would slip through pre-release test.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #6 from Trever Adams nightbox@hotmail.com 2011-06-06 01:58:09 EDT --- I never did check clamd.amavisd. It may need a similar fix (although it works without it, just as dspam largely did).
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
Matthias Haase matthias_haase@bennewitz.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |matthias_haase@bennewitz.co | |m
--- Comment #7 from Matthias Haase matthias_haase@bennewitz.com 2011-06-10 03:49:03 EDT --- (In reply to comment #4)
Created attachment 501354 [details] tmpfile.d file
The fix seems to be to place this in /etc/tmpfile.d from the RPM. Is it possible to get this added so that things work properly out of the box? Thank you.
I have this file added and that doesn't work. No creation of the missed directory in /var/run even at boot or using start|stop of amavisd. May be this is a timimg issue, I couldn't find out why.
The only working solution at present is creating the missed directory inside of the start|stop script, as Trever wrote already.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #8 from Paul Howarth paul@city-fan.org 2011-06-10 03:59:26 EDT --- It's "/etc/tmpfiles.d", not "/etc/tmpfile.d"; the conf files from there are processed by systemd at boot time. The package should also include the required directories itself so that they are created at package install time so that the package can work immediately after installation without requiring a reboot.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #9 from Matthias Haase matthias_haase@bennewitz.com 2011-06-10 05:16:18 EDT --- Sorry, was typo, of course I have placed the file at the right directory, there are several similiar files, for example httpd.conf. That doesn't work for amavisd.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #10 from Matthias Haase matthias_haase@bennewitz.com 2011-06-10 05:26:07 EDT --- Sorry, was typo, of course I have placed the file at the right directory, there are several similiar files, for example httpd.conf. That doesn't work for amavisd.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #11 from Paul Howarth paul@city-fan.org 2011-06-10 06:01:34 EDT --- The attachment from Comment #4 doesn't line up with the permissions/ownership in the spec file for amavisd-new, and that's why it's not working. Try using this line instead:
d /var/run/amavisd 0755 amavis amavis -
This works for me.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #12 from Matthias Haase matthias_haase@bennewitz.com 2011-06-10 06:27:52 EDT --- Confirmed. Right ownership for user and group now. I'll remove now the - liitle bit - ugly code from start stop script.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #13 from Trever Adams nightbox@hotmail.com 2011-06-10 09:05:13 EDT --- Sorry, I thought I had the right permissions. Thank you for fixing it.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
Johan Kok johan-fedora@deds.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |roger@gwch.net
--- Comment #14 from Johan Kok johan-fedora@deds.nl 2011-06-11 14:15:28 EDT --- *** Bug 704769 has been marked as a duplicate of this bug. ***
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
tanathka@hotmail.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tanathka@hotmail.co.uk
--- Comment #15 from tanathka@hotmail.co.uk 2011-08-27 08:49:49 EDT --- Still not fixed in the repositories yet.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #16 from Fedora Update System updates@fedoraproject.org 2011-09-18 22:40:19 EDT --- amavisd-new-2.6.6-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/amavisd-new-2.6.6-1.fc15
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #17 from Fedora Update System updates@fedoraproject.org 2011-09-18 22:41:12 EDT --- amavisd-new-2.6.6-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/amavisd-new-2.6.6-1.fc16
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #18 from Fedora Update System updates@fedoraproject.org 2011-09-19 14:32:14 EDT --- Package amavisd-new-2.6.6-1.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing amavisd-new-2.6.6-1.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/amavisd-new-2.6.6-1.fc16 then log in and leave karma (feedback).
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #19 from Fedora Update System updates@fedoraproject.org 2011-10-02 14:15:18 EDT --- amavisd-new-2.6.6-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |amavisd-new-2.6.6-1.fc16 Resolution| |ERRATA Last Closed| |2011-10-02 14:15:52
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
--- Comment #20 from Fedora Update System updates@fedoraproject.org 2011-10-02 19:06:34 EDT --- amavisd-new-2.6.6-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=696725
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|amavisd-new-2.6.6-1.fc16 |amavisd-new-2.6.6-1.fc15
perl-devel@lists.fedoraproject.org