systemd: set a high but non-infinite fd limit

This commit is contained in:
Michael Schurter 2019-07-02 09:13:24 -07:00
parent 249a13e492
commit 803aa62b7a
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d
KillMode=process
KillSignal=SIGINT
LimitNOFILE=infinity
LimitNOFILE=65536
LimitNPROC=infinity
Restart=on-failure
RestartSec=2

View file

@ -8,7 +8,7 @@ ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d
KillMode=process
KillSignal=SIGINT
LimitNOFILE=infinity
LimitNOFILE=65536
LimitNPROC=infinity
TasksMax=infinity
Restart=on-failure