cd /lib/systemd/system
vi ipfs.service
[Unit]
Description=IPFS
[Service]
ExecStart=/usr/bin/ipfs daemon
Restart=always
User=root
Group=root
[Install]
WantedBy=multi-user.target
systemctl enable ipfs.service
systemctl start ipfs.service
systemctl status ipfs.service