Top "Sigterm" questions

SIGTERM is one of the POSIX mandated signals; it indicates that the process should terminate, which is also the default action for SIGTERM.

Apache server keeps crashing, "caught SIGTERM, shutting down"

This just started happening three weeks or so ago. The content of my website hasn't changed, it's just a phpBB …

linux apache crash sigterm
How to process SIGTERM signal gracefully?

Let's assume we have such a trivial daemon written in python: def mainloop(): while True: # 1. do # 2. some # 3. important # 4. job # 5. sleep …

python daemon sigterm start-stop-daemon
Is it possible to capture a Ctrl+C signal and run a cleanup function, in a "defer" fashion?

I want to capture the Ctrl+C (SIGINT) signal sent from the console and print out some partial run totals. …

signals go sigterm
How to handle a SIGTERM

Is there a way in Java to handle a received SIGTERM?

java exit sigterm
In what order should I send signals to gracefully shutdown processes?

In a comment on this answer of another question, the commenter says: don’t use kill -9 unless absolutely necessary! …

bash signals job-control sigterm
Catching SIGTERM vs catching SIGINT

In Node.js servers, is there any difference between catching SIGTERM vs catching SIGINT? I thought processes were not supposed …

node.js sigint sigterm
SIGTERM unable to kill process

I have a single-threaded process which is not dying on kill -TERM. The process signal mask does not show that …

signals kill sigkill sigterm
How to detect pending system shutdown on Linux?

I am working on an application where I need to detect a system shutdown. However, I have not found any …

c linux sigterm system-shutdown
shell script to spawn processes, terminate children on SIGTERM

I want to write a shell script that spawns several long-running processes in the background, then hangs around. Upon receiving …

bash scripting sh long-running-processes sigterm
Win32 API analog of sending/catching SIGTERM

Under POSIX OS there is signal API that allows to send a signal to process to shut it down with …

windows winapi posix shutdown sigterm