From 0bd14910e34368d4c69b4cfa5c615761e0d4240b Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Mon, 3 Apr 2023 01:28:14 +0200 Subject: [PATCH] Fix consul and nomad reload on toothpick Signed-off-by: Magic_RB --- nixos/systems/toothpick/vault-agent.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/systems/toothpick/vault-agent.nix b/nixos/systems/toothpick/vault-agent.nix index 02bfc8e..0bdce69 100644 --- a/nixos/systems/toothpick/vault-agent.nix +++ b/nixos/systems/toothpick/vault-agent.nix @@ -62,7 +62,7 @@ with lib; destination = "/run/secrets/consul.json"; command = pkgs.writeShellScript "consul-command" '' - sudo systemctl try-restart-or-reload hashicorp-consul.service + sudo systemctl try-reload-or-restart hashicorp-consul.service ''; } { @@ -86,7 +86,7 @@ with lib; destination = "/run/secrets/nomad.json"; command = pkgs.writeShellScript "nomad-command" '' - sudo systemctl try-restart-or-reload hashicorp-nomad.service + sudo systemctl try-reload-or-restart hashicorp-nomad.service ''; } ];