Skip to content

Instantly share code, notes, and snippets.

@azak-azkaran
Created May 27, 2020 18:54
Show Gist options
  • Save azak-azkaran/7258dd64e841ab246c3a39336a2d57df to your computer and use it in GitHub Desktop.
Save azak-azkaran/7258dd64e841ab246c3a39336a2d57df to your computer and use it in GitHub Desktop.
[Unit]
Description="HashiCorp Vault - A tool for managing secrets" Documentation=https://www.vaultproject.io/docs/
Requires=network-online.target
StartLimitBurst=3
[Service]
User=andy
PrivateDevices=yes
PrivateTmp=yes
ProtectSystem=full
ReadWritePaths=/home/andy/Dropbox/vault/
#ProtectHome=read-only
#SecureBits=keep-caps
#Capabilities=CAP_IPC_LOCK+ep
#CapabilityBoundingSet=CAP_SYSLOG CAP_IPC_LOCK
NoNewPrivileges=yes
ExecStart=/usr/local/bin/vault server -config=/etc/vault.d/dropbox.hcl
KillSignal=SIGINT
TimeoutStopSec=30s
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60
StartLimitIntervalSec=60
LimitNOFILE=65536
LimitMEMLOCK=infinity
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment