18 lines
677 B
Desktop File
18 lines
677 B
Desktop File
{%- from statepath + '/map.jinja' import vault with context -%}
|
|
[Unit]
|
|
Description=vault server
|
|
Requires=network-online.target
|
|
After=network-online.target{% if vault.config.storage and vault.config.storage.type == "consul" %} consul.service{% endif %}
|
|
|
|
[Service]
|
|
EnvironmentFile=-/etc/sysconfig/vault
|
|
User={{ user }}
|
|
Group={{ group }}
|
|
ExecStart=/usr/local/bin/vault server {% if vault.config.dev_mode %}-dev{% else %}-config="/etc/vault.d/config.hcl"{% endif %}
|
|
ExecReload=/bin/kill -signal HUP $MAINPID
|
|
ExecStop=/usr/local/bin/vault operator step-down
|
|
Restart=on-failure
|
|
CapabilityBoundingSet=CAP_SYSLOG CAP_IPC_LOCK
|
|
SecureBits=keep-caps
|
|
NoNewPrivileges=yes
|
|
KillSignal=SIGINT
|