summarylogtreecommitdiffstats
path: root/dnsmasq.service
diff options
context:
space:
mode:
authorJerry2021-09-17 11:40:18 +0800
committerJerry2021-09-17 11:44:35 +0800
commitcb8c79702ea86d0083a1df857fe6eb282f1a84d3 (patch)
tree795bfa133f940e3d906d8e05e6ba1d171a960d6b /dnsmasq.service
downloadaur-dnsmasq285.tar.gz
init
Diffstat (limited to 'dnsmasq.service')
-rw-r--r--dnsmasq.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/dnsmasq.service b/dnsmasq.service
new file mode 100644
index 000000000000..c661947b241f
--- /dev/null
+++ b/dnsmasq.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=dnsmasq - A lightweight DHCP and caching DNS server
+Documentation=man:dnsmasq(8)
+After=network.target
+Before=network-online.target nss-lookup.target
+Wants=nss-lookup.target
+
+[Service]
+Type=dbus
+BusName=uk.org.thekelleys.dnsmasq
+ExecStartPre=/usr/bin/dnsmasq --test
+ExecStart=/usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
+PrivateDevices=true
+ProtectSystem=full
+
+[Install]
+WantedBy=multi-user.target