Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 502054 - mail-filter/opendkim - add systemd service unit
Summary: mail-filter/opendkim - add systemd service unit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2014-02-21 22:47 UTC by Andrius Štikonas
Modified: 2014-05-02 10:46 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrius Štikonas 2014-02-21 22:47:10 UTC
opendkim should provide systemd unit file.
Comment 1 Craig Andrews gentoo-dev 2014-03-10 02:25:12 UTC
Here's the unit file that Fedora is using: https://github.com/stevejenkins/OpenDKIM-Fedora/blob/master/contrib/systemd/opendkim.service.in
Comment 2 Pacho Ramos gentoo-dev 2014-03-30 18:53:01 UTC
But it doesn't fit with Gentoo installation and the user/groups used there, please try this one:
[Unit]
Description=DomainKeys Identified Mail (DKIM) Milter
Documentation=man:opendkim(8) man:opendkim.conf(5) man:opendkim-genkey(8) man:opendkim-genzone(8) man:opendkim-testadsp(8) man:opendkim-testkey http://www.opendkim.org/docs.html
After=network.target nss-lookup.target syslog.target

[Service]
ExecStart=/usr/sbin/opendkim -f -x /etc/opendkim/opendkim.conf
ExecReload=/bin/kill -USR1 $MAINPID

[Install]
WantedBy=multi-user.target
Comment 3 Andrius Štikonas 2014-04-29 15:25:21 UTC
(In reply to Pacho Ramos from comment #2)
> But it doesn't fit with Gentoo installation and the user/groups used there,
> please try this one:
> [Unit]
> Description=DomainKeys Identified Mail (DKIM) Milter
> Documentation=man:opendkim(8) man:opendkim.conf(5) man:opendkim-genkey(8)
> man:opendkim-genzone(8) man:opendkim-testadsp(8) man:opendkim-testkey
> http://www.opendkim.org/docs.html
> After=network.target nss-lookup.target syslog.target
> 
> [Service]
> ExecStart=/usr/sbin/opendkim -f -x /etc/opendkim/opendkim.conf
> ExecReload=/bin/kill -USR1 $MAINPID
> 
> [Install]
> WantedBy=multi-user.target

This service file works with opendkim-2.9.1 (presumably other versions too)
Comment 4 Pacho Ramos gentoo-dev 2014-05-02 10:46:23 UTC
+*opendkim-2.9.2-r1 (02 May 2014)
+
+  02 May 2014; Pacho Ramos <pacho@gentoo.org> +files/opendkim.service,
+  +opendkim-2.9.2-r1.ebuild:
+  Add unit file (#502054 by Andrius Stikonas)
+