mirror of https://github.com/Icinga/icinga2.git
Fixed setting the component search path.
This commit is contained in:
parent
8c6d3cd5b7
commit
a8b83c2d35
|
@ -27,10 +27,8 @@ int IcingaApplication::Main(const vector<string>& args)
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _WIN32
|
string componentDirectory = GetExeDirectory() + "/../lib/icinga";
|
||||||
string componentDirectory = GetExeDirectory() + "../lib/icinga";
|
|
||||||
AddComponentSearchDir(componentDirectory);
|
AddComponentSearchDir(componentDirectory);
|
||||||
#endif /* _WIN32 */
|
|
||||||
|
|
||||||
GetConfigHive()->OnObjectCreated.bind(bind_weak(&IcingaApplication::ConfigObjectCreatedHandler, shared_from_this()));
|
GetConfigHive()->OnObjectCreated.bind(bind_weak(&IcingaApplication::ConfigObjectCreatedHandler, shared_from_this()));
|
||||||
GetConfigHive()->OnObjectRemoved.bind(bind_weak(&IcingaApplication::ConfigObjectRemovedHandler, shared_from_this()));
|
GetConfigHive()->OnObjectRemoved.bind(bind_weak(&IcingaApplication::ConfigObjectRemovedHandler, shared_from_this()));
|
||||||
|
|
Loading…
Reference in New Issue