2 Commits

Author SHA1 Message Date
Greg Karékinian
c6853c4d09 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
2019-04-26 15:54:33 +02:00
Greg Karékinian
78d3edfd78 Set bash as the shell for the ipfs user 2019-03-13 10:55:54 +01:00
4 changed files with 6 additions and 1 deletions

View File

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

View File

@@ -33,5 +33,6 @@ user 'ipfs' do
uid 4737 uid 4737
gid 4737 gid 4737
home '/home/ipfs' home '/home/ipfs'
shell '/bin/bash'
manage_home true manage_home true
end end

View File

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

View File

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