Tag

Linux Signals

1 views collected around this technical thread.

Raymond Ops
Raymond Ops
Mar 11, 2025 · Operations

Master Graceful Docker Container Shutdown: Signals, Exit Codes, and Go Example

This article explains how to achieve graceful shutdown of Docker containers by handling Linux signals, interpreting common Docker exit codes, and using a Go program that registers SIGTERM and SIGINT, while also covering docker stop, docker kill, and daemon signal handling.

Container ManagementDockerGo
0 likes · 17 min read
Master Graceful Docker Container Shutdown: Signals, Exit Codes, and Go Example
IT Services Circle
IT Services Circle
Nov 25, 2024 · Fundamentals

Understanding SIGPIPE Signal and Preventing Service Crashes in Go‑Rust Integration

This article explains how the Linux SIGPIPE signal is generated during broken TCP connections, why the default kernel handling can terminate Go services that call Rust code via cgo, and provides practical code examples to ignore SIGPIPE and avoid silent process exits.

GoLinux SignalsRust
0 likes · 15 min read
Understanding SIGPIPE Signal and Preventing Service Crashes in Go‑Rust Integration
Architecture Digest
Architecture Digest
Jul 19, 2023 · Backend Development

Graceful Shutdown of Spring Boot Applications Using Linux Signals and Actuator

The article explains how to achieve graceful shutdown of Spring Boot services by handling Linux signals, registering JVM shutdown hooks, using Spring's ContextClosedEvent and Actuator endpoint, and provides practical code examples for safely terminating thread pools, sockets, and other resources.

ActuatorGraceful ShutdownJVM
0 likes · 11 min read
Graceful Shutdown of Spring Boot Applications Using Linux Signals and Actuator
Selected Java Interview Questions
Selected Java Interview Questions
May 6, 2023 · Backend Development

Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 and Using Actuator, Shutdown Hooks, and Custom Configurations

This article explains why using the violent kill -9 command can corrupt data in Java services, describes the four‑step graceful shutdown process, and provides multiple Spring Boot solutions—including SIGTERM, Actuator shutdown endpoint, custom Tomcat connector, and @PreDestroy data‑backup hooks—to stop services safely while handling thread interruptions.

ActuatorGraceful ShutdownJava
0 likes · 20 min read
Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 and Using Actuator, Shutdown Hooks, and Custom Configurations
Architecture Digest
Architecture Digest
Dec 7, 2022 · Backend Development

Graceful Shutdown of Spring Boot Services and the Risks of Using kill -9

The article explains how the Linux kill command, especially kill -9, can abruptly terminate processes causing data inconsistency, and demonstrates safer alternatives for stopping Spring Boot applications—including kill -15, the built‑in shutdown script, Actuator endpoints, custom Tomcat connector shutdown, and @PreDestroy backup hooks—providing complete code examples.

Backend DevelopmentGraceful ShutdownJava
0 likes · 19 min read
Graceful Shutdown of Spring Boot Services and the Risks of Using kill -9
Zhuanzhuan Tech
Zhuanzhuan Tech
Dec 31, 2020 · Operations

How to Implement Graceful Restart of the JVM

This article explains the three JVM shutdown methods, how to use ShutdownHook and custom SignalHandler for cleanup, and outlines a step‑by‑step graceful restart process using kill -12, kill -15, and kill -9 signals, with sample scripts and references.

Graceful ShutdownJVMJava
0 likes · 5 min read
How to Implement Graceful Restart of the JVM