1[Unit]
2Description=DNS forwarder and DHCP server
3After=network.target
4
5[Service]
6Type=forking
7PIDFile=/run/dnsmasq.pid
8ExecStartPre=/usr/bin/dnsmasq --test
9ExecStart=/usr/bin/dnsmasq -x /run/dnsmasq.pid -7 /etc/dnsmasq.d --local-service
10ExecStartPost=/usr/bin/dnsmasq-resolvconf-helper start
11ExecStop=/usr/bin/dnsmasq-resolvconf-helper stop
12ExecStop=/bin/kill $MAINPID
13ExecReload=/bin/kill -HUP $MAINPID
14
15[Install]
16WantedBy=multi-user.target
17
18