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 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