My RPi uptime on one project will never exceed 4 hours.
I’ve got a cron job set to reboot my Raspberry Pi every 4 hours because I wrote a crappy Python app that continuously creates objects during operation that I would have to recreate, but I can’t delete the originals, or rather, I can delete the original parent but the child survives and keeps its memory allocation. So a full reboot with autolaunch of the application on boot is my ugly janky workaround. Its a cosmetic application, nothing critical. Its just a colorful display of data metrics.
I can hear the horror and gnashing of teeth of real developers as they read this.
You just lack imagination. Some hikvision security cameras (the large, very expensive enterprisey ones) restart every couple of days due to “buildup of cosmic radiation”.
No matter how competent you are as a developer, there is no escaping cosmic radiation! 😉
Huh. Only 11 days on the Raspberry Pi I’m using as a “desktop system” right now. (Arch Linux Arm, btw… though Arch Linux Arm sucks now-a-days.)
Let’s check my RPi-based NAS:
[tootsweet@mynasserver ~]$ uptime 19:56:07 up 212 days, 18:43, 4 users, load average: 0.16, 0.04, 0.01Also not as long as I’d have guessed.
My RPi uptime on one project will never exceed 4 hours.
I’ve got a cron job set to reboot my Raspberry Pi every 4 hours because I wrote a crappy Python app that continuously creates objects during operation that I would have to recreate, but I can’t delete the originals, or rather, I can delete the original parent but the child survives and keeps its memory allocation. So a full reboot with autolaunch of the application on boot is my ugly janky workaround. Its a cosmetic application, nothing critical. Its just a colorful display of data metrics.
I can hear the horror and gnashing of teeth of real developers as they read this.
You just lack imagination. Some hikvision security cameras (the large, very expensive enterprisey ones) restart every couple of days due to “buildup of cosmic radiation”.
No matter how competent you are as a developer, there is no escaping cosmic radiation! 😉
Oh shit! Forget all that stuff I admitted to. My RPi reboots every 4 hours because … uh … cosmic radiation.
As a real developer…
I just remember that airplanes have “reboot the plane every 51 days” to prevent an overflow from crashing the plane in their maintenance manuals
So, like, yours can be improved, but it’s not safety critical like other reboot requirements…
“If it works, it ain’t stupid.” ;)