Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542936 - mail-filter/opendkim - add runtime= to systemd service file
Summary: mail-filter/opendkim - add runtime= to systemd service file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-03-11 16:49 UTC by Darko Luketic
Modified: 2018-09-11 15:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
opendkim runtime systemd service patch (opendkim-runtime-service.patch,340 bytes, patch)
2015-03-11 16:49 UTC, Darko Luketic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darko Luketic 2015-03-11 16:49:16 UTC
Created attachment 398668 [details, diff]
opendkim runtime systemd service patch

The default configuration of opendkim stores the pid file in /run/opendkim/opendkim.pid

defined in /etc/opendkim/opendkim.conf
by
PidFile /run/opendkim/opendkim.pid

however the opendkim.service file doesn't create this directory

attached patch will create this directory and run opendkim with the default user and group milter:milter (added by the ebuild)


Also,

I'm not sure if that's the recommended way to go:
I had to add postfix to the group milter so postfix was able to access the socket.
usermod -G mail,milter postfix
Comment 1 Account removed 2015-12-11 18:01:30 UTC
works fine in
/etc/systemd/system/opendkim.service.d/blah.conf 
override.
thank you!

[Service]
RuntimeDirectory=opendkim
RuntimeDirectoryMode=0755
User=milter
Group=milter
Comment 2 Craig Andrews gentoo-dev 2016-07-27 02:52:09 UTC
This issue was fixed in this commit: https://github.com/gentoo/gentoo/commit/fb670812f05712a931096baf601235e3afc8759b

This ticket should be marked RESOLVED/FIXED.