Vendor the external cookbooks
Knife-Zero doesn't include Berkshelf support, so vendoring everything in the repo is convenient again
This commit is contained in:
15
cookbooks/ipfs/templates/default/ipfs.systemd.service.erb
Normal file
15
cookbooks/ipfs/templates/default/ipfs.systemd.service.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user