You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
780 B

--- OpenDKIM-2.11.0-Beta2.orig/contrib/systemd/opendkim.service.in 2022-09-05 13:34:39.099662836 -0400
+++ OpenDKIM-2.11.0-Beta2/contrib/systemd/opendkim.service.in 2022-09-05 13:36:33.580356467 -0400
@@ -8,13 +8,18 @@ Documentation=man:opendkim(8) man:opendk
After=network.target nss-lookup.target syslog.target
[Service]
-Type=forking
-PIDFile=@localstatedir@/run/opendkim/opendkim.pid
+Type=simple
EnvironmentFile=-@sysconfdir@/sysconfig/opendkim
-ExecStart=@sbindir@/opendkim $OPTIONS
+ExecStart=@sbindir@/opendkim -f $OPTIONS
ExecReload=/bin/kill -USR1 $MAINPID
User=opendkim
Group=opendkim
+Restart=on-failure
+StandardOutput=null
+StandardError=null
+ProtectSystem=strict
+ProtectHome=true
+ReadWritePaths=@logdir@/opendkim
[Install]
WantedBy=multi-user.target