Score:0

How to create periodic automatic reboot with jobs prior and after reboot?

mg flag

Currently I have a Minecraft server running on a remote PC with Ubuntu server 22.04.1. I would like to create a job which would restart the PC itself while properly shutting down Minecraft server prior to reboot afterwards it should execute /opt/minecraft/run.sh inside a newly created screen session. I am very fresh into Linux and it was my first project with it.

cn flag
see the "The systemd service file" part of the minecraft installer. that unit will allow you to start, stop,and restart your minecraft server. see for instance https://minecraft.fandom.com/wiki/Tutorials/Server_startup_script
Danyil Rozumnyi avatar
mg flag
Thank you I will look into it but how would I do periodic restarts of the whole PC.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.