summarylogtreecommitdiffstats
path: root/dnsmasq@lxd.service
blob: d56a9b784b39058a02a78635096948fcde6a6893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Config for LXD, provided by @jpic

[Unit]
Description=DNS and DHCP for LXD
After=network.target
Documentation=man:dnsmasq(8)

[Service]
Type=dbus
BusName=uk.org.thekelleys.dnsmasq-lxd
ExecStartPre=/usr/bin/dnsmasq --test -C /etc/dnsmasq-lxd.conf
ExecStart=/usr/bin/dnsmasq -k -C /etc/dnsmasq-lxd.conf --user=dnsmasq --pid-file --enable-dbus=uk.org.thekelleys.dnsmasq-lxd
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target