Longest lived non embedded system I've worked with was a Linux server with an uptime from 2007 through 2019 serving as a L3 router. Amazingly, after shutting it down, it turned on again :)
I run a unify controller on docker, pihole, influxdb, grafana and a bunch of other small scripts. I did need to upgrade my collectd Python modules to 3 but that was it.