Browse Source

Reload web service instead of restart

tags/v1.0.0
Benjamin Neff 6 years ago
parent
commit
db37c740a0
No account linked to committer's email address
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      diaspora/service.sls

+ 15
- 0
diaspora/service.sls View File

- file: /etc/systemd/system/diaspora.target - file: /etc/systemd/system/diaspora.target
- service: diaspora_sidekiq_service - service: diaspora_sidekiq_service
- service: diaspora_web_service - service: diaspora_web_service

diaspora_sidekiq_service_restart:
service.running:
- name: diaspora-sidekiq.service
- require:
- service: diaspora_service
- watch: - watch:
- git: diaspora_git - git: diaspora_git
- file: {{ diaspora.install_path }}/config/database.yml - file: {{ diaspora.install_path }}/config/database.yml
- file: {{ diaspora.install_path }}/config/diaspora.yml - file: {{ diaspora.install_path }}/config/diaspora.yml

diaspora_web_service_restart:
service.running:
- name: diaspora-web.service
- reload: True
- require:
- service: diaspora_service
- watch:
- service: diaspora_sidekiq_service_restart

Loading…
Cancel
Save