opendkim.service.j2 674 B

1234567891011121314151617181920
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. [Unit]
  6. Description=OpenDKIM DomainKeys Identified Mail (DKIM) Milter
  7. 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
  8. After=network.target nss-lookup.target
  9. [Service]
  10. Type=forking
  11. PIDFile=/var/run/opendkim/opendkim.pid
  12. User=opendkim
  13. UMask=0007
  14. ExecStart=/usr/sbin/opendkim -P /var/run/opendkim/opendkim.pid -p inet:8891@127.0.0.1
  15. Restart=on-failure
  16. ExecReload=/bin/kill -USR1 $MAINPID
  17. [Install]
  18. WantedBy=multi-user.target