Last active
November 8, 2021 05:31
-
-
Save ardislu/f8476b98c0d776af36db73fc3f67db8a to your computer and use it in GitHub Desktop.
Start an ipfs daemon process using pm2 with garbage collection enabled and auto-restart when 256 MB of memory is consumed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| sudo env PATH=$PATH pm2 start "ipfs daemon --enable-gc" --name "ipfs" --max-memory-restart 256M |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment