vault_sync_daemon: drop unreliable finally-block stop ntfy, add ExecStopPost notify script

This commit is contained in:
Hermes
2026-09-19 13:34:37 -04:00
parent 9f3a99a42e
commit d89aeb7d26
2 changed files with 39 additions and 1 deletions
+4 -1
View File
@@ -504,7 +504,10 @@ def main():
observer.stop()
observer.join()
log("vault_sync_daemon stopped")
ntfy_post("Vault sync daemon stopped", "", tags="octagonal_sign", priority="high")
# NOTE: no ntfy_post here — a hard kill/OOM/crash skips this `finally`
# entirely, so relying on it for "stopped" alerts is unreliable. The
# systemd unit's ExecStopPost= hook fires unconditionally on every
# exit (clean or not) and is the actual source of stop notifications.
if __name__ == "__main__":