Skip to main content

Module unstick

Module unstick 

Source
Expand description

Unstick command - Attempt to recover stuck processes

Tries gentle recovery signals first. SIGINT can end a process that does not handle it, with or without –force; SIGTERM and SIGKILL are sent only with –force.

Recovery sequence:

  1. SIGCONT (wake if stopped)
  2. SIGINT (interrupt, like Ctrl+C)

With –force: 3. SIGTERM (polite termination request) 4. SIGKILL (force, last resort)

Usage: proc unstick # Find and unstick all stuck processes proc unstick :3000 # Unstick process on port 3000 proc unstick 1234 # Unstick PID 1234 proc unstick node # Unstick the stuck processes named node proc unstick node –cmd # … or with node anywhere in their command line proc unstick :3000 1234 # Several targets: separate arguments

Commas still work (proc unstick :3000,1234) but are deprecated.

Structs§

UnstickCommand
Attempt to recover stuck processes