I realize this is a somewhat vague question, but, I have a python script that needs to run for two years on a raspberry pi and is failing after about 3 hours. Without getting into to much detail as to what the script does (I'm not sure the script itself is at fault), what is interesting is that the process appears to stop dead in its tracks, i.e., no warnings, errors or failures are generated when it fails, the process just stops and breaks my terminal session, i.e., I can't enter any more commands when it happens. The process also disappears from the list of processes the pi is running (from the top command).
Anybody have any idea what might be going on? Is there any reason the script would just stop after some time? I'm more than happy to post extensive details about what the script does if need be, I just thought it might have something more to do with how it's interacting with the OS.
This is how I am running the script:
python animation.py &
Running a Model B+ 512MB, connected to internet via WIFI, powering the PI via USB
I tried running the script from my Mac, the same thing happened about 3 hours in. This time, the program didn't disappear from the process list, it remained in a sleeping state and it's CPU usage dropped down to 0%, while the screen I was watching the the stdout on seemed to be frozen. I am doing some serial communication with the script, is it possible it's getting hung up on a response?