Skip to content

Commit

Permalink
fix(systemd): ensure systemd detects new service
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Jun 23, 2019
1 parent a13dd03 commit 149dd81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions prometheus/archive/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ prometheus-archive-install-{{ name }}-managed-service:
- require:
- file: prometheus-archive-install-{{ name }}-file-directory
- file: prometheus-config-file-basedir-file-directory
cmd.run:
- name: systemctl daemon-reload
- require:
- file: prometheus-archive-install-{{ name }}-managed-service
{%- endif %}
{%- endif %}
Expand Down
4 changes: 2 additions & 2 deletions prometheus/service/running.sls
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ prometheus-service-running-{{ name }}-service-running:
service.running:
- name: {{ name }}
- enable: True
{%- if name in prometheus.config %}
{%- if name in prometheus.config %}
- watch:
- file: prometheus-config-file-{{ name }}-file-managed
{%- endif %}
{%- endif %}
- require:
- service: prometheus-service-running-{{ name }}-service-unmasked
- file: prometheus-config-file-var-file-directory
Expand Down

0 comments on commit 149dd81

Please sign in to comment.