From 106ec6789cbc5f5da6a6e3623a4508acae31bfe3 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sun, 8 Aug 2021 15:45:14 +0800 Subject: [PATCH] Make: update script mode --- package/build-pkg.sh | 0 package/debian/make.sh | 0 package/luci-compat/make.sh | 0 package/luci/make.sh | 0 package/openwrt/make.sh | 0 package/optware/make.sh | 0 src/.gitignore | 5 +++++ systemd/smartdns.service | 19 +++++++++++++++++++ 8 files changed, 24 insertions(+) mode change 100644 => 100755 package/build-pkg.sh mode change 100644 => 100755 package/debian/make.sh mode change 100644 => 100755 package/luci-compat/make.sh mode change 100644 => 100755 package/luci/make.sh mode change 100644 => 100755 package/openwrt/make.sh mode change 100644 => 100755 package/optware/make.sh create mode 100644 src/.gitignore create mode 100644 systemd/smartdns.service diff --git a/package/build-pkg.sh b/package/build-pkg.sh old mode 100644 new mode 100755 diff --git a/package/debian/make.sh b/package/debian/make.sh old mode 100644 new mode 100755 diff --git a/package/luci-compat/make.sh b/package/luci-compat/make.sh old mode 100644 new mode 100755 diff --git a/package/luci/make.sh b/package/luci/make.sh old mode 100644 new mode 100755 diff --git a/package/openwrt/make.sh b/package/openwrt/make.sh old mode 100644 new mode 100755 diff --git a/package/optware/make.sh b/package/optware/make.sh old mode 100644 new mode 100755 diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 0000000..d69698e --- /dev/null +++ b/src/.gitignore @@ -0,0 +1,5 @@ +.vscode +.o +.DS_Store +.swp. +smartdns diff --git a/systemd/smartdns.service b/systemd/smartdns.service new file mode 100644 index 0000000..9c51dd3 --- /dev/null +++ b/systemd/smartdns.service @@ -0,0 +1,19 @@ +[Unit] +Description=SmartDNS Server +After=network.target +StartLimitBurst=0 +StartLimitIntervalSec=60 + +[Service] +Type=forking +PIDFile=/var/run/smartdns.pid +EnvironmentFile=/etc/default/smartdns +ExecStart=/usr/sbin/smartdns -p /var/run/smartdns.pid $SMART_DNS_OPTS +KillMode=process +Restart=always +RestartSec=2 +TimeoutStopSec=5 + +[Install] +WantedBy=multi-user.target +Alias=smartdns.service