From: Wim Date: Tue, 12 May 2015 17:08:44 +0000 (+0200) Subject: systemd updates X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~78^2~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccc53505673baf1ec666041bba4b8b3a403d1b68;p=thirdparty%2Fpdns.git systemd updates * Restart on failure * Unlimited restarts * Remove ExecStop, let systemd handle the killing * Default restart time (100msec) --- diff --git a/contrib/systemd-pdns-recursor.service b/contrib/systemd-pdns-recursor.service index 903cd2c7d3..37341b6d23 100644 --- a/contrib/systemd-pdns-recursor.service +++ b/contrib/systemd-pdns-recursor.service @@ -8,6 +8,8 @@ After=network-online.target [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 diff --git a/contrib/systemd-pdns.service b/contrib/systemd-pdns.service index e5fac8012e..d1cbb022ba 100644 --- a/contrib/systemd-pdns.service +++ b/contrib/systemd-pdns.service @@ -7,9 +7,8 @@ After=network-online.target mysqld.service postgresql.service slapd.service [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