Skip to content

Instantly share code, notes, and snippets.

@chpio
Created November 7, 2016 00:03
Show Gist options
  • Save chpio/85d507956fc273e2f49147979e68dc7a to your computer and use it in GitHub Desktop.
Save chpio/85d507956fc273e2f49147979e68dc7a to your computer and use it in GitHub Desktop.
Systemd + ipfs

/etc/systemd/system/ipfs.service

[Unit]
Description=IPFS daemon
After=network.target

[Service]
User=ipfs
Environment="IPFS_PATH=/data/ipfs"
ExecStart=/usr/bin/ipfs daemon
Restart=on-failure

[Install]
WantedBy=multi-user.target
useradd -r -s /usr/bin/nologin ipfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment