Signal-Catcher
Modby Forge_User_83879429
Catches interrupt signals and performs a clean shutdown
Description
Signal-Catcher catches the SIGTERM, SIGINT and SIGHUP signals and uses them to trigger a clean shutdown.
Imagine you're running a dedicated server, and you press ctrl-c. This shuts down the server, but not cleanly: It causes the terminal to send SIGINT to the Java runtime, which will immediately terminate all running code, even in the middle of updating on-disk data. There is a mechanism to handle this, but because not literally every mod does so correctly, this has the potential to corrupt your world.
Signal-Catcher overrides this behavior, triggering a clean shutdown as if you had typed stop into the terminal.
The signals it handles are:
- SIGTERM: "Terminate". This is what kill/killall send.
- SIGINT: "Interrupt", ctrl-c as mentioned.
- SIGHUP: "Hangup". This is sent if the controlling terminal is itself killed, e.g. if you run Minecraft directly under SSH and lose your connection.
This mod has little effect client-side, but it's safe to leave it in on both sides.
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Nature Arise
add new biomes, improve vanilla biomes and vanilla style additions
AARandomLensBlocker - Actually Additions Addon
Blocks the Disc 11 easteregg for the disruption lens
Durability Notifier
Durability Notifier is a mod that shows you when your tool hits a configured percentage of durability.
Delightful Creators [Fabric] (Create and Farmer's Delight Addon)
Making automation between Farmer's Delight and Create
EnhancedTooltips
A mod that overhauls tooltips, and adds some extra information.
SLM: Codex
Add a Codex system with Skills, Passives, Actives, Lore, etc. for Items, Weapons, Armor & Curios