From df63b0d8b024ced3217db78092468719b96e8eae Mon Sep 17 00:00:00 2001 From: Alexander Baryshnikov Date: Mon, 24 Jul 2017 17:00:31 +0300 Subject: [PATCH] add critical to docs --- docs/index.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/docs/index.md b/docs/index.md index b88015a..42de103 100644 --- a/docs/index.md +++ b/docs/index.md @@ -171,3 +171,43 @@ consul: register: - srvExt1 ``` + +# Critical services + + +When critical services stopped, all other processes have to be stopped also + + +Add section `critical` to configuration: + + +```yaml +services: +- label: srvExt1 + command: restart + args: + - java + - -jar + - srvExt1.jar + stop_timeout: 5s + restart_delay: 5s + restart: 10 + +- label: consul + command: restart + args: + - consul + - agen + - -dev + - -bootstrap + - -ui +consul: + url: http://localhost:8500 + ttl: 3s + timeout: 1m0s + register: + - srvExt1 +critical: + - consul + +``` \ No newline at end of file