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 ''; } ];