From 193b0519accf14cb881c596bcdbaeae51232d4d4 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Fri, 4 Oct 2024 15:43:19 -0400 Subject: [PATCH] Add systemd notification if db locking attempt fails. --- mythtv/libs/libmythtv/dbcheck.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mythtv/libs/libmythtv/dbcheck.cpp b/mythtv/libs/libmythtv/dbcheck.cpp index cbfafa4e7b1..33510860493 100644 --- a/mythtv/libs/libmythtv/dbcheck.cpp +++ b/mythtv/libs/libmythtv/dbcheck.cpp @@ -386,6 +386,8 @@ bool UpgradeTVDatabaseSchema(const bool upgradeAllowed, if (!locked) { LOG(VB_GENERAL, LOG_INFO, "Failed to get schema upgrade lock"); + if (informSystemd) + db_sd_notify("failed to get schema upgrade lock"); GetMythDB()->SetSuppressDBMessages(false); gCoreContext->ActivateSettingsCache(true); return false;