Skip to content

Commit

Permalink
Further systemd updates, matching caps, decent max files
Browse files Browse the repository at this point in the history
  • Loading branch information
brianshumate committed Oct 22, 2018
1 parent e586530 commit 5c4f74a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/vault_systemd.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ ProtectHome=read-only
PrivateTmp=yes
PrivateDevices=yes
SecureBits=keep-caps
AmbientCapabilities=CAP_IPC_LOCK
Capabilities=CAP_IPC_LOCK+ep
AmbientCapabilities=CAP_SYSLOG CAP_IPC_LOCK
CapabilityBoundingSet=CAP_SYSLOG CAP_IPC_LOCK
NoNewPrivileges=yes
ExecStart={{ vault_bin_path }}/vault server -config={{ vault_main_config }} {% if vault_log_level is defined %}-log-level={{ vault_log_level | lower }}
Expand All @@ -36,7 +36,10 @@ KillSignal=SIGINT
Restart=on-failure
RestartSec=5
TimeoutStopSec=30
StartLimitIntervalSec=60
StartLimitBurst=3
LimitNOFILE=524288
LimitNPROC=524288
LimitMEMLOCK=infinity

[Install]
Expand Down

0 comments on commit 5c4f74a

Please sign in to comment.