unbound.service.j2 644 B

1234567891011121314151617181920212223
  1. [Unit]
  2. Description=Unbound recursive Domain Name Server
  3. After=network.target
  4. After=unbound-keygen.service
  5. Wants=unbound-keygen.service
  6. Wants=unbound-anchor.timer
  7. Before=nss-lookup.target
  8. Wants=nss-lookup.target
  9. [Service]
  10. Type=simple
  11. EnvironmentFile=-/etc/sysconfig/unbound
  12. ExecStartPre=/usr/sbin/unbound-checkconf
  13. ExecStartPre=-/usr/sbin/unbound-anchor -a /var/lib/unbound/root.key -c /etc/unbound/icannbundle.pem -f /etc/resolv.conf -R
  14. ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS
  15. ExecReload=/usr/sbin/unbound-control reload
  16. Restart=on-failure
  17. RestartSec=5s
  18. StartLimitIntervalSec=30
  19. StartLimitBurst=5
  20. [Install]
  21. WantedBy=multi-user.target