chef/cookbooks/ipfs/templates/default/ipfs.systemd.service.erb
Greg Karékinian 049d5dd006 Vendor the external cookbooks
Knife-Zero doesn't include Berkshelf support, so vendoring everything in
the repo is convenient again
2019-10-13 18:32:56 +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