Skip to main content

MonkeyCraft Server Administration Guide

Overview

The MonkeyCraft Minecraft server runs inside a persistent screen session that is managed by systemd.
This setup automatically starts the server on reboot and restarts it if it crashes or exits unexpectedly.
Admins can easily attach to the running console, issue commands, or restart the service without interrupting gameplay.


⚙️ Service Summary

Item Details
Service name monkeycraft
Working directory /monkeycraft
Launch method screen session (screen -S monkeycraft)
Startup script /monkeycraft/run.sh
Auto restart Enabled via Restart=always
Auto start on boot Yes
Managed by systemd

🧩 Basic Commands

Action Command Description
Start server sudo systemctl start monkeycraft Manually start the server
Stop server sudo systemctl stop monkeycraft Sends /stop command for a clean shutdown
Restart server sudo systemctl restart monkeycraft Cleanly restarts the entire service
Check status systemctl status monkeycraft Shows uptime, PID, and current status
View logs journalctl -u monkeycraft -f Follows live logs
Enable on boot sudo systemctl enable monkeycraft Ensures auto-start after reboot

🧱 Working Inside the Screen Session

The server runs in a screen session named monkeycraft.
Admins can attach to it safely to view or interact with the console.

🔍 Attach to the Console

screen -r monkeycraft