From a49374b2273ea45b4867b338be0fd57886472e72 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Tue, 27 Jun 2023 17:27:05 +0200 Subject: [PATCH] change reload command for nomad that caused interrupt --- templates/nomad_config.hcl.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/nomad_config.hcl.j2 b/templates/nomad_config.hcl.j2 index 5720352..7d6c8cf 100644 --- a/templates/nomad_config.hcl.j2 +++ b/templates/nomad_config.hcl.j2 @@ -11,7 +11,7 @@ template { perms = 0700 user = "{{ renew_nomad_certificates_nomad_user }}" group = "{{ renew_nomad_certificates_nomad_group }}" - command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_nomad_certificates_info['common_name'] }}\" && pkill -SIGHUP nomad '" + command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_nomad_certificates_info['common_name'] }}\" && pkill -HUP nomad '" } template { @@ -20,7 +20,7 @@ template { perms = 0700 user = "{{ renew_nomad_certificates_nomad_user }}" group = "{{ renew_nomad_certificates_nomad_group }}" - command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_nomad_certificates_info['common_name'] }}\" && pkill -SIGHUP nomad '" + command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_nomad_certificates_info['common_name'] }}\" && pkill -HUP nomad '" } template { @@ -29,5 +29,5 @@ template { perms = 0700 user = "{{ renew_nomad_certificates_nomad_user }}" group = "{{ renew_nomad_certificates_nomad_group }}" - command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_nomad_certificates_info['common_name'] }}\" && pkill -SIGHUP nomad '" + command = "sh -c 'echo \"$(date) Update certificate and key file for {{ renew_nomad_certificates_info['common_name'] }}\" && pkill -HUP nomad '" }