# This file will be overwritten on package upgrades, avoid customizations here. # # To make persistant changes, create file in # "/etc/systemd/system/ipfs.service.d/overwrite.conf" with # 'systemctl edit ipfs.service'. This file will be parsed after this # file has been parsed. # # To overwrite a variable, like ExecStart you have to specify it once # blank and a second time with a new value, like: # ExecStart= # ExecStart=/usr/bin/ipfs daemon --flag1 --flag2 # # For more info about custom unit files see systemd.unit(5). [Unit] Description=IPFS Cluster Daemon Documentation=https://docs.ipfs.io/ After=ipfs.service [Service] # enable for 1-1024 port listening AmbientCapabilities=CAP_NET_BIND_SERVICE # enable to specify a higher limit for open files/connections LimitNOFILE=1000000 #don't use swap MemorySwapMax=0 Type=simple User=ipfs Group=ipfs StateDirectory=ipfs Environment=IPFS_PATH="/var/lib/ipfs" ExecStart=/usr/bin/ipfs-cluster-service daemon Restart=on-failure KillSignal=SIGINT [Install] WantedBy=default.target