From b658ac35aec07e18ca6e939e85b32706fbcc097b Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Tue, 9 Jan 2018 15:18:34 -0800 Subject: [PATCH] Revert "Remove mention of check_restart on service" This reverts commit 758b98685be4a2997bd0bc54f55b73ac3d0365cc. --- website/source/docs/job-specification/check_restart.html.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/source/docs/job-specification/check_restart.html.md b/website/source/docs/job-specification/check_restart.html.md index 19b720276b4..d183bd0547d 100644 --- a/website/source/docs/job-specification/check_restart.html.md +++ b/website/source/docs/job-specification/check_restart.html.md @@ -28,7 +28,10 @@ As of Nomad 0.7 the `check_restart` stanza instructs Nomad when to restart tasks with unhealthy service checks. When a health check in Consul has been unhealthy for the `limit` specified in a `check_restart` stanza, it is restarted according to the task group's [`restart` policy][restart_stanza]. The -`check_restart` settings apply to [`check`s][check_stanza]. +`check_restart` settings apply to [`check`s][check_stanza], but may also be +placed on [`service`s][service_stanza] to apply to all checks on a service. +If `check_restart` is set on both the check and service, the stanzas are +merged with the check values taking precedence. ```hcl job "mysql" { @@ -146,3 +149,4 @@ details. [check_stanza]: /docs/job-specification/service.html#check-parameters "check stanza" [restart_stanza]: /docs/job-specification/restart.html "restart stanza" +[service_stanza]: /docs/job-specification/service.html "service stanza"