* Restart on failure
* Unlimited restarts
* Remove ExecStop, let systemd handle the killing
* Default restart time (100msec)
[Service]
Type=forking
ExecStart=/usr/sbin/pdns_recursor --daemon
+Restart=on-failure
+StartLimitInterval=0
PrivateTmp=true
PrivateDevices=true
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID
[Service]
Type=forking
ExecStart=/usr/sbin/pdns_server --daemon
-ExecStop=/usr/bin/pdns_control quit
Restart=on-failure
-RestartSec=2
+StartLimitInterval=0
PrivateTmp=true
PrivateDevices=true
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID