I have a server that kernel panics about once a week, so I’m adding a cronjob to reboot the server daily as a temporary fix. It’s just a bandaid, but if it’s quick and works, ship it!
To set up the daily reboot:
sudo crontab -e
Then add the following line to reboot the system every day at 4:20am:
“`bash
0 4 * * * /sbin/shutdown -r +20
“`
0 4 * * * /sbin/shutdown -r +20
“`