opendkim should provide systemd unit file.
Here's the unit file that Fedora is using: https://github.com/stevejenkins/OpenDKIM-Fedora/blob/master/contrib/systemd/opendkim.service.in
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
(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)
+*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) +