vault_sync_daemon: drop unreliable finally-block stop ntfy, add ExecStopPost notify script
This commit is contained in:
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user