mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Report version number at startup.
This commit is contained in:
parent
8e4bdf3872
commit
b996635a91
@ -21,9 +21,11 @@
|
|||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
# include "icinga-version.h"
|
# include "icinga-version.h"
|
||||||
# define ICINGA_VERSION GIT_MESSAGE
|
# define ICINGA_VERSION VERSION ", " GIT_MESSAGE
|
||||||
|
|
||||||
# include <ltdl.h>
|
# include <ltdl.h>
|
||||||
|
#else /* _WIN32 */
|
||||||
|
# define ICINGA_VERSION VERSION
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
@ -49,11 +51,7 @@ int main(int argc, char **argv)
|
|||||||
* in the base library. */
|
* in the base library. */
|
||||||
Application::SetMainThread();
|
Application::SetMainThread();
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
Logger::Write(LogInformation, "icinga", "Icinga application loader");
|
|
||||||
#else /* _WIN32 */
|
|
||||||
Logger::Write(LogInformation, "icinga", "Icinga application loader (version: " ICINGA_VERSION ")");
|
Logger::Write(LogInformation, "icinga", "Icinga application loader (version: " ICINGA_VERSION ")");
|
||||||
#endif /* _WIN32 */
|
|
||||||
|
|
||||||
if (argc < 3 || strcmp(argv[1], "-c") != 0) {
|
if (argc < 3 || strcmp(argv[1], "-c") != 0) {
|
||||||
stringstream msgbuf;
|
stringstream msgbuf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user