Maximillian Laumeister

Run IPFS on Boot (Ubuntu/Debian)

If you are running Ubuntu or Debian (or other system that uses systemd), here’s how to get IPFS to run in the background, so you can continually host your pinned files to the IPFS network.

Write the following script to /etc/systemd/system/ipfs.service:

Description=IPFS daemon

### Uncomment the following line for custom ipfs datastore location
# Environment=IPFS_PATH=/path/to/your/ipfs/datastore
ExecStart=/usr/local/bin/ipfs daemon


Then, run:

sudo systemctl start ipfs

.. to start the service, and:

sudo systemctl enable ipfs

…to make it run on every boot.

(originally published Sep 21, 2018)