-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing vault service file for linux package (#13049)
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
33 changes: 33 additions & 0 deletions
33
.release/linux/package/usr/lib/systemd/system/vault.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[Unit] | ||
Description="HashiCorp Vault - A tool for managing secrets" | ||
Documentation=https://www.vaultproject.io/docs/ | ||
Requires=network-online.target | ||
After=network-online.target | ||
ConditionFileNotEmpty=/etc/vault.d/vault.hcl | ||
StartLimitIntervalSec=60 | ||
StartLimitBurst=3 | ||
|
||
[Service] | ||
EnvironmentFile=/etc/vault.d/vault.env | ||
User=vault | ||
Group=vault | ||
ProtectSystem=full | ||
ProtectHome=read-only | ||
PrivateTmp=yes | ||
PrivateDevices=yes | ||
SecureBits=keep-caps | ||
AmbientCapabilities=CAP_IPC_LOCK | ||
CapabilityBoundingSet=CAP_SYSLOG CAP_IPC_LOCK | ||
NoNewPrivileges=yes | ||
ExecStart=/usr/bin/vault server -config=/etc/vault.d/vault.hcl | ||
ExecReload=/bin/kill --signal HUP $MAINPID | ||
KillMode=process | ||
KillSignal=SIGINT | ||
Restart=on-failure | ||
RestartSec=5 | ||
TimeoutStopSec=30 | ||
LimitNOFILE=65536 | ||
LimitMEMLOCK=infinity | ||
|
||
[Install] | ||
WantedBy=multi-user.target |