Is your server console hanging when you issue a stop command? You're not alone. This mod is designed to solve that issue by managing non-daemon threads that often fail to shut down gracefully, causing the server to hang.
How It Works:
The Stray Thread Killer mod monitors the server thread during shutdown and detects any straggling threads that could prevent a clean stop. Once the server stop process is triggered, the mod waits for these stray threads for up to 5 seconds before forcefully sending a halt signal. This approach ensures a smoother shutdown process, allowing your console to reboot normally and preventing those frustrating hangs.
Features:
- Detects non-daemon threads during server shutdown.
- Provides a 5-second (configurable) grace period for these threads to complete.
- Sends a halt signal to ensure the server stops cleanly.
Note: This mod is intended to be lightweight and focused solely on addressing server shutdown issues.
How to Install Pebble's Stray Thread Killer (Mod)
Pebble's Stray Thread Killer by lilpebs is verified for Fabric across Minecraft versions 1.20.1, 1.21.1 (latest release: 1.0.1-1.21.1, file size: 17 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.1, 1.21.1) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Pebble's Stray Thread Killer file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Added config file to enable/disable and change wait time before shutdown.
- Updated to 1.21.1
- Initial Release