source: n4d-dnsmasq/trunk/fuentes/install-dnsmasq/usr/share/n4d-dnsmasq/dnsmasq.service @ 659

Last change on this file since 659 was 659, checked in by hectorgh, 5 years ago

adding lliurex dnsmasq.service file

File size: 1.0 KB
Line 
1[Unit]
2Description=dnsmasq - A lightweight DHCP and caching DNS server
3Requires=network.target
4
5# MODIFIED BY LLIUREX TO ENSURE INTERFACES ARE READY
6After=network-online.target
7Wants=network-online.target
8
9[Service]
10Type=forking
11PIDFile=/var/run/dnsmasq/dnsmasq.pid
12
13# Test the config file and refuse starting if it is not valid.
14ExecStartPre=/usr/sbin/dnsmasq --test
15
16# We run dnsmasq via the /etc/init.d/dnsmasq script which acts as a
17# wrapper picking up extra configuration files and then execs dnsmasq
18# itself, when called with the "systemd-exec" function.
19ExecStart=/etc/init.d/dnsmasq systemd-exec
20
21# The systemd-*-resolvconf functions configure (and deconfigure)
22# resolvconf to work with the dnsmasq DNS server. They're called liek
23# this to get correct error handling (ie don't start-resolvconf if the
24# dnsmasq daemon fails to start.
25ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf
26ExecStop=/etc/init.d/dnsmasq systemd-stop-resolvconf
27
28
29ExecReload=/bin/kill -HUP $MAINPID
30
31[Install]
32WantedBy=multi-user.target
Note: See TracBrowser for help on using the repository browser.