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
|
||||
KillMode=process
|
||||
KillSignal=SIGINT
|
||||
LimitNOFILE=infinity
|
||||
LimitNOFILE=65536
|
||||
LimitNPROC=infinity
|
||||
Restart=on-failure
|
||||
RestartSec=2
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue