init.sls 716 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # systemd related stuff
  3. #
  4. # Define systemd daemon-reload command to pull in if required
  5. systemctl-daemon-reload:
  6. cmd.wait:
  7. - name: systemctl daemon-reload
  8. - watch: []
  9. #
  10. # Install service to wait for routing adjancies to come up (if needed)
  11. #
  12. /etc/systemd/system/wait-for-routes.service:
  13. file.managed:
  14. - source: salt://systemd/wait-for-routes.service
  15. - watch_in:
  16. - cmd: systemctl-daemon-reload
  17. wait-for-routes.service:
  18. service.running:
  19. - enable: true
  20. - require:
  21. - file: /etc/systemd/system/wait-for-routes.service
  22. - file: /usr/local/sbin/wait-for-routes
  23. /usr/local/sbin/wait-for-routes:
  24. file.managed:
  25. - source: salt://systemd/wait-for-routes
  26. - mode: 755