From 59f2848e1b70ad1c4bdad5422f10604a71907054 Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Tue, 2 May 2023 14:44:42 +0200 Subject: [PATCH] Add non reload option to envoy Signed-off-by: Magic_RB --- nixos/modules/public/hashicorp-envoy.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/public/hashicorp-envoy.nix b/nixos/modules/public/hashicorp-envoy.nix index dde8c48..978244e 100644 --- a/nixos/modules/public/hashicorp-envoy.nix +++ b/nixos/modules/public/hashicorp-envoy.nix @@ -155,7 +155,7 @@ in environment = value.environment; serviceConfig = { - ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; + ExecReload = if value.hotRestart then "${pkgs.coreutils}/bin/kill -HUP $MAINPID" else null; KillMode = "control-group"; KillSignal = "SIGINT"; LimitNOFILE = 65536;