-
-
Save VinodVerma7584/784a1a44d5bb06977f38a71476f73c6d to your computer and use it in GitHub Desktop.
/etc/systemd/system/vault.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=vault server | |
Requires=network-online.target | |
After=network-online.target consul.service | |
[Service] | |
EnvironmentFile=-/etc/sysconfig/vault | |
Restart=on-failure | |
ExecStart=/usr/local/sbin/vault server $OPTIONS -config=/etc/vault.d | |
ExecStartPost=/bin/bash -c "for key in $KEYS; do /usr/local/sbin/vault unseal $CERT $key; done" | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment