[Unit] Description=XMRig Daemon After=network.target [Service] Type=simple ExecStart=/root/xmrig --config=/root/xmrig-config.json Restart=always User=root [Install] WantedBy=multi-user.target