service.running: | service.running: | ||||
- name: diaspora-web.service | - name: diaspora-web.service | ||||
- reload: True | - 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: | - require: | ||||
- service: diaspora_service | - service: diaspora_service | ||||
- watch: | - watch: |