summarylogtreecommitdiffstats
path: root/smartdns.patch
diff options
context:
space:
mode:
authorzlowly2019-11-05 15:02:41 +0800
committerzlowly2019-11-05 15:02:41 +0800
commit092eb44266f92a44377d4ebec86226383835aca3 (patch)
tree06ce066bdfdf43d9f0d8a1d65f819da26505eb28 /smartdns.patch
downloadaur-092eb44266f92a44377d4ebec86226383835aca3.tar.gz
initial version
Diffstat (limited to 'smartdns.patch')
-rw-r--r--smartdns.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/smartdns.patch b/smartdns.patch
new file mode 100644
index 000000000000..bc511092ff92
--- /dev/null
+++ b/smartdns.patch
@@ -0,0 +1,24 @@
+--- smartdns.service.old 2019-09-24 10:41:44.487335094 +0800
++++ smartdns.service.new 2019-09-24 10:44:43.832401460 +0800
+@@ -1,17 +1,17 @@
+ [Unit]
+ Description=smart dns server
+ After=network.target
++StartLimitBurst=0
++StartLimitIntervalSec=60
+
+ [Service]
+ Type=forking
+-PIDFile=/var/run/smartdns.pid
++PIDFile=/run/smartdns.pid
+ EnvironmentFile=/etc/default/smartdns
+-ExecStart=/usr/sbin/smartdns $SMART_DNS_OPTS
++ExecStart=/usr/bin/smartdns $SMART_DNS_OPTS
+ KillMode=process
+ Restart=always
+ RestartSec=2
+-StartLimitBurst=0
+-StartLimitIntervalSec=60
+
+ [Install]
+ WantedBy=multi-user.target