Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5377

Troubleshooting • Re: Issue with systemd on Rpi

$
0
0
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.

Statistics: Posted by RamaSpaceShip — Fri Feb 09, 2024 7:33 am



Viewing all articles
Browse latest Browse all 5377

Trending Articles