~ubuntu-branches/ubuntu/vivid/dnsmasq/vivid-proposed

« back to all changes in this revision

Viewing changes to debian/init

  • Committer: Package Import Robot
  • Author(s): Simon Kelley
  • Date: 2014-05-11 17:45:21 UTC
  • mfrom: (12.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20140511174521-txxhl08n7bgin641
Tags: 2.70-3
 * Write a pid-file, even when being started using systemd, since
   other components may wish to signal dnsmasq.
 * Enable dnsmasq systemd unit on install. Otherwise dnsmasq does not run on
   fresh installations (without administrator handholding) and even worse it
   is disabled on systems switching from sysv to systemd. Modify
   postinst/postrm exactly as dh_systemd would, add dependency on
   init-system-helpers. Closes: #724602

Show diffs side-by-side

added added

removed removed

Lines of Context:
277
277
        stop_resolvconf
278
278
        ;;
279
279
  systemd-exec)
280
 
#  --pid-file without argument disables writing a PIDfile, we don't need one with sytemd.
281
280
# Enable DBus by default because we use DBus activation with systemd.
282
 
        exec $DAEMON --keep-in-foreground --pid-file --enable-dbus \
 
281
        exec $DAEMON --keep-in-foreground --enable-dbus \
283
282
            ${MAILHOSTNAME:+ -m $MAILHOSTNAME} \
284
283
            ${MAILTARGET:+ -t $MAILTARGET} \
285
284
            ${DNSMASQ_USER:+ -u $DNSMASQ_USER} \