optimized install parameters

This commit is contained in:
fred 2022-11-13 02:53:18 +01:00
parent ae0d7c1b18
commit a1c8539715
1 changed files with 8 additions and 1 deletions

View File

@ -49,11 +49,15 @@ cat > /tmp/ipfs.service <<EOF
[Unit]
Description=IPFS daemon
After=network.target
Requires=network.target
[Service]
Type=simple
User=_USER_
RestartSec=1
Restart=always
Environment=IPFS_FD_MAX=8192
ExecStart=/usr/local/bin/ipfs daemon --enable-pubsub-experiment --enable-namesys-pubsub
Restart=on-failure
CPUAccounting=true
CPUQuota=60%
@ -111,5 +115,8 @@ for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#")
sudo systemctl restart ipfs
## Add ulimit "open files" (avoid ipfs hang)
ulimit -n 2048
} # this ensures the entire script is downloaded #
# IPFS CONFIG documentation: https://github.com/ipfs/go-ipfs/blob/master/docs/config.md#addressesswarm