Skip to content

Instantly share code, notes, and snippets.

@icefoxen
Created April 6, 2018 04:18
Show Gist options
  • Save icefoxen/7810a3b95a2997585f9e4b85e3fe8455 to your computer and use it in GitHub Desktop.
Save icefoxen/7810a3b95a2997585f9e4b85e3fe8455 to your computer and use it in GitHub Desktop.
[Unit]
Description=IPFS server
After=network.target auditd.service
[Service]
EnvironmentFile=-/etc/default/ipfs
ExecStart=/home/ipfs/bin/ipfs daemon
ExecReload=/bin/kill $MAINPID
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=simple
User=ipfs
Group=ipfs
[Install]
WantedBy=multi-user.target
Alias=ipfs.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment