Not saying this is a good idea, but a client requested it… 0_o
Here is crontab -e
### Reboot the server every day at 3:00 am
0 3 * * * /sbin/shutdown -r now >/dev/null
or, if the want to call a reboot from script:
Here is reboot_server.sh
#!/bin/bash
/sbin/shutdown -r now