sls/kibana/init.sls: Add watch_in on service restart to pax marks;

This commit is contained in:
Antsiferov Grigory 2016-10-31 14:01:31 +03:00
parent 66970d08bd
commit 1b5e735c4b

View File

@ -28,9 +28,15 @@ kibana:
- name: 'paxctl -cm /opt/kibana/node/bin/node'
- onchange:
- pkg: kibana
- watch_in:
- service: kibana
'paxctl-ng-kibana-onfail':
cmd.run:
- name: 'service kibana stop; paxctl -cm /opt/kibana/node/bin/node'
- name: 'service kibana stop; sleep 10; paxctl -cm /opt/kibana/node/bin/node'
- onfail:
- cmd: paxctl-ng-kibana
- watch_in:
- service: kibana