Official is not support with latest version of cuda version. checkout personal package
touch mining.sh
Add content below to mining.sh
./nsfminer -U -P stratum1+ssl://<wallet_address>@asia1.ethermine.org:5555
Allow script to executable
chmod +x mining.sh
touch mining.service
Add content below to mining.service
[Unit]
After=network.service
[Service]
Type=simple
ExecStart=<path>/mining.sh
StandardOutput=append:<path>/logs/mining.log
StandardError=append:<path>/logs/mining.error.log
Restart=always
RestartSec=1
[Install]
WantedBy=default.target
Available command
sudo systemctl enable $PWD/mining.service
sudo systemctl disable mining.service
sudo systemctl status mining.service
sudo systemctl start mining.service
sudo systemctl stop mining.service
sudo systemctl restart mining.service