Bug 760212

Summary: dovecot.tmpfilesd: wrong permissions 750 should be 755
Product: [Fedora] Fedora Reporter: Harald Reindl <h.reindl>
Component: dovecotAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: mhlavink
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 11:20:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Harald Reindl 2011-12-05 16:21:49 UTC
the fedora apckage has here with 750 wrong permissions
see log below, they have to be 755 to avoid warnings each reboot
______________________

[builduser@buildserver:/rpmbuild/SOURCES]$ cat dovecot.tmpfilesd
d /var/run/dovecot 0755 root dovecot -
______________________

Dec  5 15:46:34 caladan dovecot: auth: Fatal: Error reading configuration: stat(/var/run/dovecot/config) failed: No such file or directory
Dec  5 15:47:33 caladan dovecot: master: Warning: Fixing permissions of /var/run/dovecot to be world-readable

Comment 1 Michal Hlavinka 2011-12-06 09:37:54 UTC
How do you reproduce this problem?

In post-installation script, we have:
install -d -m 0755 -g dovecot -d /var/run/dovecot

and /etc/tmpfiles.d/dovecot.conf contains
d /var/run/dovecot 0755 root dovecot -

So it should be created with correct permissions.

Comment 2 Harald Reindl 2011-12-06 09:59:02 UTC
sorry for the noise, maybe fixed in the meantime

i forked the fedora-srpm as for many other server-packages because the all to not use "Restart=always" which is the greatest benefit of systemd

Comment 3 Michal Hlavinka 2011-12-06 11:20:58 UTC
(In reply to comment #2)
> i forked the fedora-srpm as for many other server-packages because the all to
> not use "Restart=always" which is the greatest benefit of systemd

what about /etc/systemd/system/<daemon>.service

with content:
.include /lib/systemd/system/<daemon>.service

[Service]
Restart=on-failure/no

AFAIK it should help for your use case

Comment 4 Harald Reindl 2011-12-06 11:32:24 UTC
well but this does not change the fact that fedora-packages are restarting services while update packages which is simply UNACCEPTABLE 

i did the last 3 days 20 dist-upgrades via yum from F14 to F15 with all server-packages built at my own, all services where running while upgrade, after upgrade and while making cleanups and finally rebooted the machine

the automatic restarts leads in crahsing daemons most of the time and interruptions at moments you can not control - simply unusable