Skip to content

Instantly share code, notes, and snippets.

@jcockhren
Created April 25, 2014 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcockhren/f6bde4a6fef332001703 to your computer and use it in GitHub Desktop.
Save jcockhren/f6bde4a6fef332001703 to your computer and use it in GitHub Desktop.
Watch a file and restart the service
postgresql-9.1-postgis:
service.running:
- name: postgresql
- enable: True
- require:
- pkg: postgresql-9.1-postgis
- watch:
- file: /etc/postgresql/9.1/main/pg_hba.conf
- pkg: postgresql-9.1-postgis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment