diff options
Diffstat (limited to 'etc/systemd')
-rw-r--r-- | etc/systemd/system/dnsmasq-ns0.service | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/etc/systemd/system/dnsmasq-ns0.service b/etc/systemd/system/dnsmasq-ns0.service new file mode 100644 index 00000000..0f8477cc --- /dev/null +++ b/etc/systemd/system/dnsmasq-ns0.service @@ -0,0 +1,22 @@ +# modified from /usr/lib/systemd/system/dnsmasq.service + +[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 +After=ns0.service + +[Service] +Type=Simple +ExecStartPre=/usr/bin/dnsmasq --test +ExecStart=/usr/bin/dnsmasq -k --user=dnsmasq --pid-file +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +PrivateDevices=true +ProtectSystem=full +NetworkNamespacePath=/run/netns/ns0 + +[Install] +WantedBy=multi-user.target |