Fixed systemd service unit missing Install section
This commit is contained in:
parent
c7b8b44d41
commit
23edd149ef
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=vault server
|
Description=vault server
|
||||||
Requires=network-online.target
|
Requires=network-online.target{% if config.storage and config.storage.type == "consul" %} consul.service{% endif %}
|
||||||
After=network-online.target{% if config.storage and config.storage.type == "consul" %} consul.service{% endif %}
|
After=network-online.target{% if config.storage and config.storage.type == "consul" %} consul.service{% endif %}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -16,3 +16,6 @@ AmbientCapabilities=CAP_IPC_LOCK
|
||||||
SecureBits=keep-caps
|
SecureBits=keep-caps
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue