Use the new attributes for ulimit and max memory

Co-authored-by: Sebastian Kippe <sebastian@kip.pe>
This commit is contained in:
Greg 2019-07-05 15:24:21 +02:00
parent 0e6ac38434
commit 9cdbf6d947
1 changed files with 3 additions and 3 deletions

View File

@ -7,9 +7,9 @@ User=ipfs
Group=ipfs
Restart=always
# Raise the ulimit (max number of open files)
LimitNOFILE=64000
# Limit the memory usage to 256MB
MemoryMax=256M
LimitNOFILE=<%= node['ipfs']['ulimit'] %>
# Limit the memory usage
MemoryMax=<%= node['ipfs']['memory_max'] %>
[Install]
WantedBy=multi-user.target