blob: b913eb47fd92233a4c0ac53bb1a43125d3d511f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
[Unit]
Description=Vault agent (config:%i)
Documentation=https://developer.hashicorp.com/vault/docs/agent
Requires=network-online.target
After=network-online.target
[Service]
User=vault
Group=vault
ExecStart=/bin/vault agent -config=/etc/vault-agent.d/%i/agent.hcl
KillSignal=SIGINT
[Service]
Environment=GOMAXPROCS=2
EnvironmentFile=-/etc/default/vault-agent
EnvironmentFile=-/etc/vault-agent.d/%i/agent.env
WorkingDirectory=/etc/vault-agent.d/%i
TimeoutStopSec=30s
Restart=on-failure
RestartSec=15
[Unit]
ConditionPathIsDirectory=/etc/vault-agent.d/%i
ConditionFileNotEmpty=/etc/vault-agent.d/%i/agent.hcl
StartLimitIntervalSec=300
StartLimitBurst=20
[Install]
WantedBy=multi-user.target
|