Hi all.
I have a pi zero running a python script. I am in an area where power is not consistent and blackouts occur regularly. When the power is cut and restored, the pi zero reboots, but the python script is not longer running. How can I automate the detection of when the pi reboots and then start the script again? Is there a log that is created when the pi reboots that can be checked by a bash script?
Thanks in advance.