systemd: set a high but non-infinite fd limit
This commit is contained in:
parent
249a13e492
commit
803aa62b7a
|
@ -15,7 +15,7 @@ ExecReload=/bin/kill -HUP $MAINPID
|
||||||
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d
|
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d
|
||||||
KillMode=process
|
KillMode=process
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
LimitNOFILE=infinity
|
LimitNOFILE=65536
|
||||||
LimitNPROC=infinity
|
LimitNPROC=infinity
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
|
|
|
@ -8,7 +8,7 @@ ExecReload=/bin/kill -HUP $MAINPID
|
||||||
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d
|
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d
|
||||||
KillMode=process
|
KillMode=process
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
LimitNOFILE=infinity
|
LimitNOFILE=65536
|
||||||
LimitNPROC=infinity
|
LimitNPROC=infinity
|
||||||
TasksMax=infinity
|
TasksMax=infinity
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
Loading…
Reference in New Issue