+++ This bug was initially created as a clone of Bug #863069 +++ Description of problem: There are some default folder locations specified in the config file that don't get created when amavisd-new is installed. The program fails to start because of it, at least until the host is rebooted. For example, this message gets printed to the log file when trying to start the service: amavis[5461]: (!)Net::Server: 2012/10/04-04:35:06 Couldn't open pid file "/var/run/amavisd/amavisd.pid" [No such file or directory].\n\n at line 318 in fil...Net/Server.pm In order to make amavisd.service start correctly, I had to do the following: mkdir /var/spool/amavisd/var mkdir /var/run/amavisd/ chown -R amavis:amavis /var/spool/amavisd/var /var/run/amavisd/ chmod 700 /var/spool/amavisd/var After that, everything worked as expected. The other option is to reboot before attempting to start the service. Version-Release number of selected component (if applicable): amavisd-new-2.8.0-5.fc19 How reproducible: Always Steps to Reproduce: 1. yum install amavisd-new 2. systemctl start amavisd.service 3. Actual results: Fails to start Expected results: Starts using default config file Additional info: I noticed that /var/run/amavisd is not present immediately after installing the package. Once I rebooted the host, the directory became available. To me this suggests that the entry /etc/tmpfiles.d/amavisd-new.conf is doing its job, but the spec file for this package needs to also make the same temporary directories as part of package installation, or somehow rerun the tmpfiles.d jobs. Without doing this, those directories won't be available right after package installation.
(In reply to John Florian from comment #0) > ... or somehow rerun the tmpfiles.d jobs. systemd-tmpfiles --create
(In reply to ArcFi from comment #1) > (In reply to John Florian from comment #0) > > ... or somehow rerun the tmpfiles.d jobs. > > systemd-tmpfiles --create Perfect. Would the package maintainer please patch the %post to include this critical missing step?
systemd-tmpfiles --create --prefix=/var/run/amavisd --prefix=/var/run/clamd.amavisd Better this way. We do not want to create /var/run/nologin. =)
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
amavisd-new-2.8.1-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/amavisd-new-2.8.1-1.fc20
amavisd-new-2.8.1-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/amavisd-new-2.8.1-1.fc19
Package amavisd-new-2.8.1-1.fc20: * should fix your issue, * was pushed to the Fedora 20 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.8.1-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-3711/amavisd-new-2.8.1-1.fc20 then log in and leave karma (feedback).
amavisd-new-2.8.1-1.fc20 works
amavisd-new-2.8.1-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
amavisd-new-2.8.1-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.