From 9cdbf6d9472b36a08e2b82c7bbadc1c76e96523d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Fri, 5 Jul 2019 15:24:21 +0200 Subject: [PATCH] Use the new attributes for ulimit and max memory Co-authored-by: Sebastian Kippe --- templates/default/ipfs.systemd.service.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/default/ipfs.systemd.service.erb b/templates/default/ipfs.systemd.service.erb index a15ae81..f8155fb 100644 --- a/templates/default/ipfs.systemd.service.erb +++ b/templates/default/ipfs.systemd.service.erb @@ -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