summaryrefslogtreecommitdiff
path: root/etc/systemd/system/dnsmasq-ns0.service
blob: 0f8477cc762d933f4f617707501ea22c0b646be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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