vault.service 376 B

123456789101112131415161718
  1. [Unit]
  2. Description=vault server
  3. Requires=network-online.target
  4. After=network-online.target
  5. [Service]
  6. User=vault
  7. Environment=VAULT_SERVER_OPTS="-config=/etc/vault.d"
  8. ExecStart=/usr/bin/vault server $VAULT_SERVER_OPTS
  9. CapabilityBoundingSet=CAP_IPC_LOCK
  10. Capabilities=CAP_IPC_LOCK=ep
  11. SecureBits=keep-caps
  12. Restart=on-failure
  13. SuccessExitStatus=2
  14. [Install]
  15. WantedBy=default.target