-
-
Save christroutner/8f5ab5efc219c8938ec9da86ee254108 to your computer and use it in GitHub Desktop.
IPFS systemd service with resource limits
This file contains 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
[Unit] | |
Description=IPFS daemon | |
After=network-online.target | |
[Service] | |
ExecStart=/home/ipfs/.nix-profile/bin/ipfs daemon | |
User=ipfs | |
LimitNice=10 | |
MemoryHigh=4G | |
# OOM-killer | |
MemoryMax=6G | |
MemorySwapMax=1G | |
[Install] | |
WantedBy=multiuser.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment