Skip to content

Instantly share code, notes, and snippets.

@dwdraju
Created October 7, 2018 16:48
Show Gist options
  • Save dwdraju/39f7d0ab0ddd464543b863ee7a701b86 to your computer and use it in GitHub Desktop.
Save dwdraju/39f7d0ab0ddd464543b863ee7a701b86 to your computer and use it in GitHub Desktop.
vault systemd servce
[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
@brnl
Copy link

brnl commented Jun 3, 2019

StandardOutput=/var/log/vault-output.log
StandardError=/var/log/vault-error.log

Should be:

StandardOutput=file:/var/log/vault-output.log
StandardError=file:/var/log/vault-error.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment