Puppet Class: dnsmasq::reload

Defined in:
manifests/reload.pp

Overview

Class: dnsmasq::reload

Send a HUP signal to any dnsmasq processes in order to reload changes from ‘/etc/hosts` and `/etc/ethers` and any file given by `–dhcp-hostsfile`, `–dhcp-optsfile` or `–addn-hosts`.

This is necessary because the SysV script on Ubuntu doesn’t provide a reload command. It will not reload configuration changes. It will also send a HUP to all dnsmasq processes, of which there may be more than one, however that should be harmless.



12
13
14
15
16
# File 'manifests/reload.pp', line 12

class dnsmasq::reload {
  exec { '/usr/bin/pkill -HUP dnsmasq':
    refreshonly => true,
  }
}