diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-03 22:22:53 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-03 22:22:53 +0000 |
| commit | e0ad39a489b3398f8208713bf728db0cb11475b0 (patch) | |
| tree | 34f9ce47908985259a2a24efa2468e9743b94e2f /src/git/process.rs | |
| parent | 61e9b8a111f932d2753c18c8435b74e01ae4a2e3 (diff) | |
Handle SIGTERM for graceful shutdown with systemd
Listen for both SIGINT (Ctrl+C) and SIGTERM (systemd) signals to ensure
graceful shutdown cleanup runs when stopping the service via systemd.
Previously, only SIGINT was handled, causing purgatory state and rejected
events cache to be lost on every systemd restart. Now both signals trigger
the cleanup code that saves state files and removes placeholder refs.
Fixes issue 0f73
Diffstat (limited to 'src/git/process.rs')
0 files changed, 0 insertions, 0 deletions