Since there are many such articles on the web, I recommend good articles published, in accordance with article configuration to achieve a scheduled task to restart the tomcat service.
Article reference address: https://www.luoxudong.com/?p=330
PS: As crontab without success, to detect crontab service is started,
Detecting whether to activate the timer task: /etc/init.d/crond status
Restart timing tasks: /etc/init.d/crond restart