[Unit]
Description=HashiCorp Vault Agent
Documentation=https://www.vaultproject.io/docs/agent
Requires=network-online.target
After=network-online.target

[Service]
Type=simple
User={{ vault_agent_user }}
Group={{ vault_agent_group }}
ExecStart=/usr/local/bin/vault agent -config={{ vault_agent_config_dir }}/config.hcl
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target