I have a Ubuntu Linux Server 14.04 LTS which is running a Minecraft server.
I want it to reboot every 6 hours. I have that now and after the reboot, it starts the Minecraft server.
Now what I want. I have the server console in a screen session named cds_screen. Is there a way to do something like screen -d -r cds_screen && say Server is restarting && sudo reboot
?
The server runs as jebg user and not as root so can anyone help me?