Skip to content

Commit

Permalink
Add systemd notification if db locking attempt fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Oct 4, 2024
1 parent 9af23f2 commit 193b051
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/dbcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 193b051

Please sign in to comment.