From 1b5e735c4baa3c54dce8c636215b43ce950757c4 Mon Sep 17 00:00:00 2001 From: Antsiferov Grigory Date: Mon, 31 Oct 2016 14:01:31 +0300 Subject: [PATCH] sls/kibana/init.sls: Add watch_in on service restart to pax marks; --- sls/kibana/init.sls | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sls/kibana/init.sls b/sls/kibana/init.sls index cce691b..118a3b4 100644 --- a/sls/kibana/init.sls +++ b/sls/kibana/init.sls @@ -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 + +