Skip to content

Commit

Permalink
fix(service): don't reload too quick after starting the service
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux88 committed Oct 11, 2020
1 parent 63628a4 commit 49a5a42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions diaspora/service.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 49a5a42

Please sign in to comment.