Set the maximum number of open files in the systemd unit

This prevents IPFS reaching the limit (1024 by default), which is
treated like a low disk space threshold by ipfs and ipfs-cluster
This commit is contained in:
Greg Karékinian 2019-04-26 15:54:33 +02:00
parent 78d3edfd78
commit c6853c4d09
3 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@ maintainer_email 'mail@kosmos.org'
license 'MIT'
description 'Installs/Configures ipfs'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.2'
version '0.1.3'
supports %w(ubuntu debian)

View File

@ -6,6 +6,8 @@ ExecStart=/usr/local/bin/ipfs-cluster-service daemon --upgrade
User=ipfs
Group=ipfs
Restart=always
# Raise the ulimit (max number of open files)
LimitNOFILE=64000
[Install]
WantedBy=multi-user.target

View File

@ -6,6 +6,8 @@ ExecStart=/usr/local/bin/ipfs daemon --migrate
User=ipfs
Group=ipfs
Restart=always
# Raise the ulimit (max number of open files)
LimitNOFILE=64000
[Install]
WantedBy=multi-user.target