Language

Pebble's Stray Thread Killer

Pebble's Stray Thread Killer

Modrinth

A server-side mod intended to fix server hanging on restarts by sending shutdown signal to hanging threads after main server thread shuts down.

2.0k downloads 7 followers updated 17mo ago
latest v1.0.1-1.21.1 Modrinth
Fabric 1.20.1 – 1.21.1

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.

Versions

Release
1.0.1-1.21.1
fabric · 1.21.1 · 17mo ago
- Added config file to enable/disable and change wait time before shutdown.
1.4k
Release
1.0.0-1.21.1
fabric · 1.21.1 · 18mo ago
- Updated to 1.21.1
93
Release
1.0.0
fabric · 1.20.1 · 18mo ago
- Initial Release
535

Comments 0

No comments yet. Be the first to share your thoughts.

Download Pebble's Stray Thread Killer

Files are served directly from the original source. Modgrid does not host or modify them.