First, remove USER=pi from your service file.
Don't use sudo in your service file.
Create a shell script (say /home/pi/bin/start_BTC_miners.sh) and put your complex command it it (without sudo).Make it executable.
Test it with: sudo /home/pi/bin/start_BTC_miners.sh
Change the ExecStart line in your service file to:
ExecStart=/home/pi/bin/start_BTC_miners.sh
It has then a better chance to work.
Don't use sudo in your service file.
Create a shell script (say /home/pi/bin/start_BTC_miners.sh) and put your complex command it it (without sudo).Make it executable.
Test it with: sudo /home/pi/bin/start_BTC_miners.sh
Change the ExecStart line in your service file to:
ExecStart=/home/pi/bin/start_BTC_miners.sh
It has then a better chance to work.
Statistics: Posted by RamaSpaceShip — Fri Feb 09, 2024 7:33 am