Run the IPFS daemon in the background

1.Run the IPFS daemon in the background

# ipfs daemon &

2.Register for service

# echo "[Unit]
Description=IPFS
After=network.target
[Service]
ExecStart=/usr/local/bin/ipfs daemon --migrate
Restart=always
User=root
Group=root
Restart=on-failure
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target" > /lib/systemd/system/ipfs.service
#
# systemctl daemon-reload
# systemctl enable ipfs
# systemctl start ipfs
# ps -aux|grep ipfs
root        6070 31.3  0.5 1421384 94088 ?       Ssl  09:40   0:00 /usr/local/bin/ipfs daemon --migrate
root        6081  0.0  0.0   6400  2236 pts/1    S+   09:40   0:00 grep --color=auto ipfs
#