Use the new attributes for ulimit and max memory
Co-authored-by: Sebastian Kippe <sebastian@kip.pe>
This commit is contained in:
parent
0e6ac38434
commit
9cdbf6d947
|
@ -7,9 +7,9 @@ User=ipfs
|
||||||
Group=ipfs
|
Group=ipfs
|
||||||
Restart=always
|
Restart=always
|
||||||
# Raise the ulimit (max number of open files)
|
# Raise the ulimit (max number of open files)
|
||||||
LimitNOFILE=64000
|
LimitNOFILE=<%= node['ipfs']['ulimit'] %>
|
||||||
# Limit the memory usage to 256MB
|
# Limit the memory usage
|
||||||
MemoryMax=256M
|
MemoryMax=<%= node['ipfs']['memory_max'] %>
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue