Merge pull request #186087 from Mic92/consul

nixos/consul: use signal instead of api for reload
This commit is contained in:
Jörg Thalheim
2022-11-06 20:32:19 +01:00
committed by GitHub
+1 -1
View File
@@ -201,7 +201,7 @@ in
serviceConfig = {
ExecStart = "@${cfg.package}/bin/consul consul agent -config-dir /etc/consul.d"
+ concatMapStrings (n: " -config-file ${n}") configFiles;
ExecReload = "${cfg.package}/bin/consul reload";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
PermissionsStartOnly = true;
User = if cfg.dropPrivileges then "consul" else null;
Restart = "on-failure";