Skip to content

Commit

Permalink
add critical to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
reddec committed Jul 24, 2017
1 parent e91d7b5 commit df63b0d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit df63b0d

Please sign in to comment.