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")