Vault - vault-snapshot.service (systemd unit)
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.
| Item | Value |
|---|---|
| Path on the host | /etc/systemd/system/vault-snapshot.service |
| Deployed on | all Vault nodes |
| Enabled with | systemctl enable --now vault-snapshot |
| Runs as | vault:vault |
The file
[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