From cc989075601357186e25f59cb9b705e5d129ce75 Mon Sep 17 00:00:00 2001 From: whitney Date: Tue, 9 May 2023 13:35:35 -0700 Subject: [PATCH] Update documentation, add cronjob for server restart. --- README.md | 10 ++++++++++ minecraft/README.md | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/README.md b/README.md index 8b17c17..edbff1a 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,14 @@ Try connecting to the public IP/via domain if DNS is set up already. 5. Clone this repo somewhere. +6. Set system time using `timedatectl`, in case we want to set up any cron jobs later. + +List current time: `timedatectl` + +Get time zone options: `timedatectl list-timezones` + +Set local timezone: `sudo timedatectl set-timezone America/Los_Angeles` + ## Part 2: Services Configuration @@ -193,6 +201,8 @@ SinglePlayerSleep: `https://www.spigotmc.org/resources/singleplayersleep.68139/` DynMap: `https://www.spigotmc.org/resources/dynmap%C2%AE.274/` NoEndermanGrief: `https://www.spigotmc.org/resources/no-enderman-grief2.71236/` +The minecraft server seems to run into instability from time to time. Thus, I configured a cronjob to restart the server at 2am daily, using crontab. + ### NordVPN Uses the open source https://github.com/bubuntux/nordvpn to create a NordVPN container that other containers can route traffic through. diff --git a/minecraft/README.md b/minecraft/README.md index 24256f6..d409ff8 100644 --- a/minecraft/README.md +++ b/minecraft/README.md @@ -30,4 +30,13 @@ NoEndermanGrief: `https://www.spigotmc.org/resources/no-enderman-grief2.71236/` ajLeaderboards: `https://www.spigotmc.org/threads/ajleaderboards.471179/` +##### Periodic Restarts + +The minecraft server runs into instability from time to time. Thus, it needs to be restarted every once and a while. + +Since people play late, I chose to update at 2am PST. + +`sudo crontab -e` + +add `0 2 * * * docker restart minecraft-2023 minecraft-creative`