mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
Daemon: Deal with exceptions from broken _api package
This commit is contained in:
parent
c821e73364
commit
0d6d48fd59
@ -289,7 +289,13 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Remove ignored Downtime/Comment objects. */
|
/* Remove ignored Downtime/Comment objects. */
|
||||||
ConfigItem::RemoveIgnoredItems(ConfigObjectUtility::GetConfigDir());
|
try {
|
||||||
|
String configDir = ConfigObjectUtility::GetConfigDir();
|
||||||
|
ConfigItem::RemoveIgnoredItems(configDir);
|
||||||
|
} catch (const std::exception& ex) {
|
||||||
|
Log(LogNotice, "cli")
|
||||||
|
<< "Cannot clean ignored downtimes/comments: " << ex.what();
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user