]> granicus.if.org Git - pdns/commitdiff
systemd updates
authorWim <wim@42.be>
Tue, 12 May 2015 17:08:44 +0000 (19:08 +0200)
committerWim <wim@42.be>
Tue, 12 May 2015 21:20:58 +0000 (23:20 +0200)
* Restart on failure
* Unlimited restarts
* Remove ExecStop, let systemd handle the killing
* Default restart time (100msec)

contrib/systemd-pdns-recursor.service
contrib/systemd-pdns.service

index 903cd2c7d389735e3afb5f0299c61e7a003c11e4..37341b6d23ac034d97b63e50a03e65ee477e8a5f 100644 (file)
@@ -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
index e5fac8012e2262c9e5c49309d25e0043eb9233ba..d1cbb022ba44f60579bbc8ac0fb913225e91f044 100644 (file)
@@ -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