![Wink](https://bitcointalk.org/Smileys/default/wink.gif)
If you use the RPI exclusively for the ZTEX boards: create cronjob that runs a shutdown -r every 3 or 6 hours.
If also other tasks are running then create cronjob which applies a kill -9 on the BTCMiner task and restart it.
Of course you can use the same RPI to run a stratum-proxy, configure it for your favourite pools and point the BTCMiner to localhost instead of the pools ip(s).