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
[Unit] Description=IPFS daemon After=network.target [Service] ### Uncomment the following line for custom ipfs datastore location # Environment=IPFS_PATH=/path/to/desired/location/of/datastore ExecStart=/usr/local/bin/ipfs daemon Restart=on-failure [Install] WantedBy=default.target
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)