mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
33 lines
1.0 KiB
Desktop File
33 lines
1.0 KiB
Desktop File
[Unit]
|
|
Description=dnsmasq - A lightweight DHCP and caching DNS server
|
|
|
|
[Service]
|
|
Type=dbus
|
|
BusName=uk.org.thekelleys.dnsmasq
|
|
|
|
# Test the config file and refuse starting if it is not valid.
|
|
ExecStartPre=/usr/sbin/dnsmasq --test
|
|
|
|
# We run dnsmasq via the /etc/init.d/dnsmasq script which acts as a
|
|
# wrapper picking up extra configuration files and then execs dnsmasq
|
|
# itself, when called with the "systemd-exec" function.
|
|
#
|
|
# It also adds the command-line flags
|
|
# --keep-in-foreground --enable-dbus
|
|
# to enable DBus by default because we use DBus activation.
|
|
#
|
|
ExecStart=/etc/init.d/dnsmasq systemd-exec
|
|
|
|
# The systemd-*-resolvconf functions configure (and deconfigure)
|
|
# resolvconf to work with the dnsmasq DNS server. They're called liek
|
|
# this to get correct error handling (ie don't start-resolvconf if the
|
|
# dnsmasq daemon fails to start.
|
|
ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf
|
|
ExecStop=/etc/init.d/dnsmasq systemd-stop-resolvconf
|
|
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|