I have a little python3 script to control our central heating. It runs through a while true:
loop, with time.sleep(-time.time() % 5)
to be synchronized to the system clock while checking the if
statements forever. Total runtime is over one year.
It runs inside GNU screen on Arch Linux ARM on a Raspberry 2.
Until now, it happened twice, that the program just "sleeps" until I log in and reattach to the screen. Then I can see the output e.g. from five hours ago when it started to sleep and as soon as getting reattached to the screen, it continues to work again and give new output.
I have no idea where to start since I get no errors and the "sleeps" happened to happen without any relation I could think of.
And I have two other python scripts also running on its own GNU screen. One script still recorded temperatures to a database with a time.sleep(-time.time() % 60)
and the other still saved values to a database all the time.