Lots of ways to schedule a periodic reboot. While this app is no longer supported, it still works fine, and is easy to setup: