Browse Source

fix(service): don't reload too quick after starting the service

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

+ 3
- 0
diaspora/service.sls View File

@@ -77,6 +77,9 @@ diaspora_web_service_restart:
service.running:
- name: diaspora-web.service
- reload: True
- unless: >-
systemctl is-active diaspora-web.service | grep -E 'activ(e|ating)' &&
test $(ps -p $(systemctl show --property MainPID diaspora-web.service | cut -d= -f2) -oetimes=) -lt 10
- require:
- service: diaspora_service
- watch:

Loading…
Cancel
Save