OpenDMARC icon indicating copy to clipboard operation
OpenDMARC copied to clipboard

systemd: use Type=simple and no fork to avoid PIDFile race

Open mdomsch opened this issue 3 years ago • 2 comments

mdomsch avatar Feb 24 '22 21:02 mdomsch

Would it be possible/desirable to use Type=notify instead?

DemiMarie avatar Mar 19 '22 14:03 DemiMarie

Type=notify would be possible if the app is enhanced to call sd_notify(3) following startup. But this seems to only matter if we have services (e.g. the MTA) configured to depend on opendmarc such that it's not started until after opendmarc (and other similar milters) have started, which also is not the case. Right now there is no ordering between opendmarc, openarc, opendkim, and sendmail, at least on a CentOS 8 and a Fedora 35 system. Nor does postfix have a startup dependency ordering on these.

mdomsch avatar Mar 20 '22 16:03 mdomsch