cd /lib/systemd/system
vi ipfs.service
[Unit]
Description=IPFS[Service]ExecStart=/usr/bin/ipfs daemonRestart=alwaysUser=rootGroup=root[Install]WantedBy=multi-user.target systemctl enable ipfs.servicesystemctl start ipfs.servicesystemctl status ipfs.service