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

Troubleshooting • Re: Build HAT script not loading on/after startup

$
0
0
My latest command was

Code:

@reboot sleep 60; python3 /home/admin/Spike/ForceSensor.py &

If you need that sleep an @reboot cron job is the wrong method. Work out why you need the sleep and use a more apropriate one: a systemd service with apropriate dependencies or one of the methods provided by the desktop.

I'm guessing you haven't applied the advice in section 8 of Running A Program At Start Up A Beginner's Guide. I suggest you do so and come back when you have the actual error being thrown. Getting that from cron is in s8.1.3

All I (or anyone else) can do without the error message is to guess and that will likely waste everyone's time.

Statistics: Posted by thagrol — Wed Jan 24, 2024 4:09 pm



Viewing all articles
Browse latest Browse all 3745

Trending Articles