LINUXOR.SK ... open source notes ...

Vault - vault-snapshot.service (systemd unit)

category: solutionz · date: 2024-12-31 · updated: 2026-10-02 · author: LALA

Vault Solution · Config document · referenced from Raft snapshots, backup and restore

The systemd unit that keeps the Raft snapshot agent running on every Vault node. It starts only when its configuration file exists and is not empty.

ItemValue
Path on the host/etc/systemd/system/vault-snapshot.service
Deployed onall Vault nodes
Enabled withsystemctl enable --now vault-snapshot
Runs asvault:vault

The file

ini
[Unit]
Description="An Open Source Snapshot Service for Raft"
Documentation=https://github.com/Lucretius/vault_raft_snapshot_agent/
Requires=network-online.target
After=network-online.target
ConditionFileNotEmpty=/etc/vault.d/snapshot.json

[Service]
Type=simple
User=vault
Group=vault
ExecStart=/usr/local/bin/vault_raft_snapshot_agent
ExecReload=/usr/local/bin/vault_raft_snapshot_agent
KillMode=process
Restart=on-failure
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target
← solutionz