Created
October 7, 2018 16:48
-
-
Save dwdraju/39f7d0ab0ddd464543b863ee7a701b86 to your computer and use it in GitHub Desktop.
vault systemd servce
This file contains hidden or 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 service | |
Requires=network-online.target | |
After=network-online.target | |
ConditionFileNotEmpty=/etc/vault/config.json | |
[Service] | |
EnvironmentFile=-/etc/sysconfig/vault | |
Environment=GOMAXPROCS=2 | |
Restart=on-failure | |
ExecStart=/usr/local/bin/vault server -config=/etc/vault/config.json | |
StandardOutput=/var/log/vault-output.log | |
StandardError=/var/log/vault-error.log | |
LimitMEMLOCK=infinity | |
ExecReload=/bin/kill -HUP $MAINPID | |
KillSignal=SIGTERM | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be: