This question has already been answered:
There is ubuntu 14.04 x64. Problem:
It is necessary to restart the service (in my case, service tor) every (for example) 10 minutes. At the same time, he himself never falls and always works. But sometimes it simply stops issuing new IPs (it is treated by rebooting: service tor restart)
Tell me how to set up auto-restart?