Last active
August 20, 2020 14:52
-
-
Save lordcirth/378ae7c3a8d2786874d00867098cbad1 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 |
da2x
commented
Feb 14, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment