Merge pull request #186087 from Mic92/consul
nixos/consul: use signal instead of api for reload
This commit is contained in:
commit
1d442b3b68
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue