ipfs-cookbook/templates/default/ipfs.systemd.service.erb
Greg Karékinian 9cdbf6d947 Use the new attributes for ulimit and max memory
Co-authored-by: Sebastian Kippe <sebastian@kip.pe>
2019-07-05 15:29:08 +02:00

16 lines
339 B
Plaintext

[Unit]
Description=Start ipfs
[Service]
ExecStart=/usr/local/bin/ipfs daemon --migrate --routing=dhtclient
User=ipfs
Group=ipfs
Restart=always
# Raise the ulimit (max number of open files)
LimitNOFILE=<%= node['ipfs']['ulimit'] %>
# Limit the memory usage
MemoryMax=<%= node['ipfs']['memory_max'] %>
[Install]
WantedBy=multi-user.target