configurations/ipfs/lib/systemd/system/ipfs.service

26 lines
454 B
Desktop File

[Unit]
Description=IPFS Daemon
After=network.target
[Service]
#Runtime
Environment="IPFS_PATH=/mnt/ipfs"
Environment=IPFS_LOGGING="error"
ExecStart=/home/ipfs/.local/bin/ipfs daemon --enable-gc --migrate
User=ipfs
Restart=on-failure
RestartSec=10s
KillSignal=SIGINT
#Accounting
LimitNOFILE=10240
#LimitNice=10
MemoryAccounting=true
MemoryHigh=512M
MemoryMax=768M
MemorySwapMax=512M
CPUAccounting=true
CPUQuota=40%
[Install]
WantedBy=multi-user.target