From 7ed73c92c58964a72ee1b65bb4bb45a45ecdc7d1 Mon Sep 17 00:00:00 2001 From: Yevgeniy Brikman Date: Mon, 6 May 2019 12:15:44 +0100 Subject: [PATCH] Enable vault in systemd This ensures it starts back up automatically after a reboot! Thanks to @adriananeci for catching the same bug in https://github.com/hashicorp/terraform-aws-consul/pull/135. --- modules/run-vault/run-vault | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/run-vault/run-vault b/modules/run-vault/run-vault index b08fbb64..c449de78 100755 --- a/modules/run-vault/run-vault +++ b/modules/run-vault/run-vault @@ -395,6 +395,7 @@ EOF function start_vault { log_info "Reloading systemd config and starting Vault" sudo systemctl daemon-reload + sudo systemctl enable vault.service sudo systemctl restart vault.service }