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