~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to vivid/lib/systemd/system/dnsmasq.service

  • Committer: Dimitri John Ledkov
  • Date: 2014-11-19 12:58:41 UTC
  • Revision ID: dimitri.j.ledkov@intel.com-20141119125841-98dr37roy8dvcv3b
auto update

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[Unit]
 
2
Description=dnsmasq - A lightweight DHCP and caching DNS server
 
3
 
 
4
[Service]
 
5
Type=dbus
 
6
BusName=uk.org.thekelleys.dnsmasq
 
7
 
 
8
# Test the config file and refuse starting if it is not valid.
 
9
ExecStartPre=/usr/sbin/dnsmasq --test
 
10
 
 
11
# We run dnsmasq via the /etc/init.d/dnsmasq script which acts as a
 
12
# wrapper picking up extra configuration files and then execs dnsmasq
 
13
# itself, when called with the "systemd-exec" function.
 
14
#
 
15
# It also adds the command-line flags
 
16
#    --keep-in-foreground --enable-dbus 
 
17
# to enable DBus by default because we use DBus activation.
 
18
#
 
19
ExecStart=/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.
 
25
ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf
 
26
ExecStop=/etc/init.d/dnsmasq systemd-stop-resolvconf
 
27
 
 
28
 
 
29
ExecReload=/bin/kill -HUP $MAINPID
 
30
 
 
31
[Install]
 
32
WantedBy=multi-user.target