summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.dhcp
blob: 88a6f1399bd263328f435d17289af8c8471d2b3c (plain)
  1. control:
  2.     AddInstallable = ( dhcpd_reload )
  3. editfiles:
  4. { /etc/dhcp.conf
  5. #
  6. # We don't make the dhcp.conf dynamically, but instead we copy the contents
  7. # of a master file, but only if it's newer than the one installed.
  8. #
  9. BeginGroupIfFileIsNewer "/etc/local-COMMON/dhcpd.conf.$(site)"
  10. AutoCreate
  11. EmptyEntireFilePlease
  12. InsertFile "/etc/local-COMMON/dhcp.conf.$(site)"
  13. Append "# Edited by cfengine $(date)"
  14. EndGroup
  15. DefineClasses "dhcpd_reload"
  16. }
  17. shellcommands:
  18. dhcpd_reload::
  19. "/etc/init.d/dhcp force-reload"