Commit Graph

256 Commits

Author SHA1 Message Date
Gunnar Beutner 630a1a28e2 Make Application::ReadPidFile work on Windows.
Refs #5788
2014-05-01 20:09:38 +02:00
Gerd von Egidy 49d2932d30 Fix how the stdin/stdout fds are set to null during Daemonize().
Fixes #5951

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-04-29 23:44:04 +02:00
Gerd von Egidy 1e321f0959 Fix possible race when the reload-process determines it's parent pid and the true parent has ended
Now transfers the true parent pid as parameter to --reload-internal.

Refs #5788
2014-04-29 10:34:02 +02:00
Gerd von Egidy 3ece2ba643 Fix logging during shutdown procedure.
Refs #5788
2014-04-29 10:34:02 +02:00
Gerd von Egidy 3a294bbd5d Fork new process from previous daemon on reload.
The previously planned logic of forking a new daemon from the reload-process didn't work with
systemd: systemd does not allow long-running processes started from within the reload command.

Replaces parameter --reload with --reload-internal which is used when starting the new daemon.

Refs #5788
2014-04-29 10:34:01 +02:00
Gerd von Egidy 33bd909b71 Add --reload command-line parameter.
Refs #5788
2014-04-29 10:34:01 +02:00
Gerd von Egidy 19afcd894a Split ConfigItem::ActivateItems() into ConfigItem::ValidateItems() and ConfigItem::ActivateItems().
Also removes the -Z commandline parameter: won't be needed when this feature is done.

Refs #5788
2014-04-29 10:34:01 +02:00
Gunnar Beutner 0c60799b6a Set Icinga service to start automatically.
Fixes #6050
2014-04-26 23:22:12 +02:00
Gunnar Beutner 951c61ed16 Use fewer threads by default.
Refs #6053
2014-04-22 20:53:46 +02:00
Gunnar Beutner 466cac1f52 Wait until the service has stopped in the uninstaller.
Refs #4865
2014-04-20 15:47:57 +02:00
Gunnar Beutner ad894c367a Stop the Icinga service before uninstalling the files.
Refs #4865
2014-04-20 15:35:51 +02:00
Gunnar Beutner bddbe241ac Fix incorrect #endif in icinga-app.cpp.
Refs #4865
2014-04-20 07:22:04 +02:00
Gunnar Beutner 562eed49b8 Fix pkg data dir for Windows.
Refs #4865
2014-04-18 16:21:31 +02:00
Gunnar Beutner df518e4d0f Use the right path prefix for Windows.
Refs #4865
2014-04-18 16:15:34 +02:00
Gunnar Beutner 0fb55f3404 Fix NSIS installer and Windows service.
Refs #4865
2014-04-18 12:15:01 +02:00
Gunnar Beutner 50e8c5f8da Run the Windows Service as NT AUTHORITY\NetworkService.
Refs #4865
2014-04-17 13:46:33 +02:00
Gunnar Beutner 1373a543b2 Add icon and version info resource for the Icinga binary.
Refs #4865
2014-04-16 19:05:11 +02:00
Gunnar Beutner 7805b23330 Build fix.
Refs #4865
2014-04-16 15:05:50 +02:00
Gunnar Beutner 979ec735a0 Allow running Icinga 2 as a Windows service.
Refs #4865
2014-04-16 15:01:15 +02:00
Gunnar Beutner 25b598300f Fix infinite loop when user/group for -u/-g are invalid.
Fixes #6008
2014-04-13 23:35:42 +02:00
Michael Friedrich 9ab4b3dd16 Remove the 'Icinga' prefix for global constants.
Fixes #5960
2014-04-07 21:42:23 +02:00
Gunnar Beutner aba2a09245 Build fix for FreeBSD/OS X. 2014-03-31 00:08:43 +02:00
Gunnar Beutner 64aa5d1b09 Dump AST execution state in debug mode.
Refs #5878
2014-03-29 13:48:04 +01:00
Gunnar Beutner c0b10a8245 Make config error messages friendler.
Refs #5825
2014-03-21 15:58:13 +01:00
Gunnar Beutner dde483d7a8 Make config error messages more awesome.
Refs #5825
2014-03-21 15:39:52 +01:00
Michael Friedrich 1d32c5b2d3 Add --no-validate option and skip duplicate validation on (re)start.
Fixes #5800
2014-03-19 20:59:18 +01:00
Michael Friedrich ce737ff2f3 Change copyright header (again).
Fixes #5424
2014-03-19 11:42:47 +01:00
Gunnar Beutner 25dc86881a Make script variables constant.
Fixes #5446
2014-02-12 11:51:50 +01:00
Gunnar Beutner 9116c58b24 Fix: IcingaUseVfork warning when spawning child processes.
Fixes #5607
2014-02-05 14:32:56 +01:00
Michael Friedrich 555d72150a Update copyright header.
Fixes #5424
2014-01-09 00:32:11 +01:00
Gunnar Beutner 38aa231a2d Discard unused config items as early as possibly.
Refs #5400
2013-12-20 13:31:13 +01:00
Gunnar Beutner 162cee5c40 Remove the ConsoleLogger class and keep the default console log enabled until we daemonize.
Refs #5342
2013-12-16 17:23:23 +01:00
Gunnar Beutner 6714796ecd Set rlimits in the Application class (rather than in the init script).
Fixes #5260
2013-12-05 11:11:03 +01:00
Gunnar Beutner e540685e13 Implement support for constants in the config parser.
Refs #4946
2013-12-04 11:32:45 +01:00
Gunnar Beutner 9d8edd286f Implement IcingaSysconfDir variable.
Refs #5224
2013-11-27 09:46:31 +01:00
Gunnar Beutner 92dd32eb68 Implement support for high-level stack traces.
Refs #5085
2013-11-21 09:42:27 +01:00
Gunnar Beutner 6acc017707 Remove namespace qualifiers for boost::make_shared and boost::enable_shared_from_this.
Fixes #5012
2013-11-07 08:28:33 +01:00
Gunnar Beutner 3088b9d39d Implement --no-config option.
Fixes #4998
2013-11-05 09:13:43 +01:00
Gunnar Beutner e32f97c07a Don't compile SigHupHandler on Windows.
Refs #4995
2013-11-05 08:34:34 +01:00
Gunnar Beutner a6b0233b75 Make sure the name of the initial library (libicinga) is not hard-coded.
Refs #4959
2013-11-04 15:33:29 +01:00
Gunnar Beutner 871f6febc7 Move methods to a separate library.
Refs #4959
2013-11-04 15:29:18 +01:00
Gunnar Beutner f2307c4242 Add cmake build files.
Refs #4962
2013-11-03 13:45:26 +01:00
Gunnar Beutner 2c143fbdf8 Remove unused files.
Refs #4962
2013-11-03 11:12:47 +01:00
Gunnar Beutner 9f1c4539dc Remove libltdl dependency.
Refs #4964
2013-10-30 12:00:55 +01:00
Gunnar Beutner db4b3b78d6 Implement class compiler.
Refs #4963
2013-10-28 14:27:36 +01:00
Michael Friedrich 60766659e5 Move icinga2 binary into sbin.
fixes #4936
2013-10-21 11:26:09 +02:00
Gunnar Beutner fa845775a2 Fix crashes when restarting Icinga. 2013-10-17 10:56:42 +02:00
Michael Friedrich 4135578903 Add GraphiteWriter.
fixes #3986
2013-10-15 14:56:02 +02:00
Gunnar Beutner 07e2a38c4d Make getpwnam/getgrnam error messages more user-friendly. 2013-10-10 11:28:07 +02:00
Michael Friedrich 29a9365a48 Fix getgrname error message. 2013-10-09 23:49:44 +02:00