ProcessKill
ProcessKill is a specification to terminate running software processes with multiple different attempts.
Example:
- Sent
QUIT
signal 6 times, at interval of 1,2,3,5,8,13 seconds in between - If the previous attempts failed, send
TERM
signal 5 times, one right after another - If the previous attempts failed, sent
KILL
signal 3 times, at intervals of 5 seconds in between
ProcessKill plan in YAML format:
---
- signal: QUIT
interval:
- 1
- 2
- 3
- 5
- 8
- 13
- signal: TERM
max_retry: 5
- signal: KILL
max_retry: 3
interval: 5
Implementations:
- Ruby https://github.com/liuming/process_kill_rb