summaryrefslogtreecommitdiffstats
path: root/opendkim-systemd-service-simple.patch
blob: 412c93263f8fde823cb19278c7a51fab4039a7ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- 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