From bb3cc0bfb9caa76d56a766531c161d0f24b072a4 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Sun, 30 Oct 2016 21:30:13 -0400 Subject: [PATCH] Move logs configuration up in init command --- command/init.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/command/init.go b/command/init.go index ed10cbdfc..d4fe742d3 100644 --- a/command/init.go +++ b/command/init.go @@ -186,6 +186,21 @@ job "example" { # } # } + # The "logs" stana instructs the Nomad client on how many log files and + # the maximum size of those logs files to retain. Logging is enabled by + # default, but the "logs" stanza allows for finer-grained control over + # the log rotation and storage configuration. + # + # For more information and examples on the "logs" stanza, please see + # the online documentation at: + # + # https://www.nomadproject.io/docs/job-specification/logs.html + # + # logs { + # max_files = 10 + # max_file_size = 15 + # } + # The "template" stanza instructs Nomad to manage a template, such as # a configuration file or script. This template can optionally pull data # from Consul or Vault to populate runtime configuration data. @@ -220,21 +235,6 @@ job "example" { # change_signal = "SIGHUP" # } - # The "logs" stana instructs the Nomad client on how many log files and - # the maximum size of those logs files to retain. Logging is enabled by - # default, but the "logs" stanza allows for finer-grained control over - # the log rotation and storage configuration. - # - # For more information and examples on the "logs" stanza, please see - # the online documentation at: - # - # https://www.nomadproject.io/docs/job-specification/logs.html - # - # logs { - # max_files = 10 - # max_file_size = 15 - # } - # Controls the timeout between signalling a task it will be killed # and killing the task. If not set a default is used. # kill_timeout = "20s"