cluster/services/consul: only require consul if enabled
This commit is contained in:
parent
c3073e347b
commit
0e8abeb78b
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ in
|
|||
{
|
||||
systemd.services.consul-ready = {
|
||||
description = "Wait for Consul";
|
||||
requires = [ "consul.service" ];
|
||||
after = [ "consul.service" ];
|
||||
requires = lib.mkIf config.services.consul.enable [ "consul.service" ];
|
||||
after = lib.mkIf config.services.consul.enable [ "consul.service" ];
|
||||
serviceConfig = {
|
||||
ExecStart = lib.getExe consulReady;
|
||||
DynamicUser = true;
|
||||
|
|
Loading…
Reference in a new issue