How to reboot ASIC automatically

I have an antminer s9, it is getting offline shortly after applying an overclocking profile, already has happened to me two or three times. I cannot access remotely and it is hard to get physical access to the site so when it gets offline I have to wait at least two day until I can get to this location.
The problem fixes by simply rebooting the ASIC, how could I configure it to automatically reboot after some time it has no internet connection?

I’m using ASIC firmware 1.02@191120. On a Antminer S9.