Consul template kill_timeout proper usage

Hello everyone, can you please help me how to use till_timeout in my hcl configuration which shown below ? I am having problems on command step, my command not finishes in 30 seconds, so consul killing itself because of timeout;

  # This defines the amount of time to wait for the child process to gracefully
  # terminate when Consul Template exits. After this specified time, the child
  # process will be force-killed (effectively "kill -9"). The default value is
  # "30s".
  #kill_timeout = "2s"

my configuration;

consul {
  address = "https://consulserver.com"
  retry {
    enabled  = true
    attempts = 0
    backoff  = "250ms"
  }
}
reload_signal = "SIGHUP"
kill_signal = "SIGINT"
log_level = "warn"

template {
  source      = "/templates/sometemplate.ctmpl"
  destination = "/templates/sometemplateresult"
  wait {
    min = "15s"
    max = "25s"
  }
  command = "/bin/bash /bash_scripts/script1.sh"
}
template {
  source      = "/templates/sometemplate1.ctmpl"
  destination = "/templates/sometemplateresult1"
  wait {
    min = "15s"
    max = "25s"
  }
  command = "/bin/bash /bash_scripts/script2.sh"
}
template {
  source      = "/templates/sometemplate2.ctmpl"
  destination = "/templates/sometemplateresult2"
  wait {
    min = "15s"
    max = "25s"
  }
  command = "/bin/bash /bash_scripts/script3.sh"
}