0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

vault: start after consul if consul is used as storage backend

This commit is contained in:
Volth 2017-06-28 00:58:19 +00:00
parent d016ef1f5b
commit 7330e80456

View file

@ -93,7 +93,8 @@ in
description = "Vault server daemon";
wantedBy = ["multi-user.target"];
after = [ "network.target" ];
after = [ "network.target" ]
++ optional (config.services.consul.enable && cfg.storageBackend == "consul") "consul.service";
preStart =
optionalString (cfg.storageBackend == "file" || cfg.storageBackend == "file_transactional")