diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2024-09-04 09:53:49 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2024-09-04 09:53:49 -0700 |
commit | 497ecae46a8ee31122edad3984e1187ed9cc370c (patch) | |
tree | 2fe5807527386578896abf77e7468699c8370559 /src/libvmon/defs/proc_wants.def | |
parent | 9992253bd3a56981ccc2c3992b2057348be99ae3 (diff) |
vmon: trigger final snapshot on SIGTERM
When using vmon to monitor a system PID1 will kill it @
shutdown/reboot, and we should save one last snapshot of what's
been captured before we exit in that case.
SIGTERM is sent first before the SIGKILL killing spree, so let's
handle the SIGTERM by writing the snapshot, then exiting the main
loop.
The service manager can then do something with the produced
snapshots after we've exited, if they're considered interesting.
Diffstat (limited to 'src/libvmon/defs/proc_wants.def')
0 files changed, 0 insertions, 0 deletions