Gunnar Beutner
43bb5127ac
Fix incorrect log message
2014-10-13 14:00:28 +02:00
Gunnar Beutner
a01fb6d6e6
Make sure we're using the right user/group for CLI commands
...
refs #7246
2014-10-13 13:44:45 +02:00
Gunnar Beutner
50a1b243ed
Hide some of the internal command-line arguments
...
refs #7246
2014-10-10 11:08:24 +02:00
Gunnar Beutner
4c8d0b9283
Fix auto-completion for arguments
...
refs #7246
2014-10-10 10:07:56 +02:00
Gunnar Beutner
a4081f1445
Implement support for CLI commands
...
fixes #7246
2014-10-08 15:33:10 +02:00
Gunnar Beutner
25ed7dcdb2
Fall back to using SysconfDir + "/icinga2/icinga2.conf" if --config is not specified
...
fixes #6874
2014-08-17 13:48:55 +02:00
Gunnar Beutner
0443c85bf5
Implement support for writing the icinga2.debug file
...
refs #6702
2014-08-15 21:00:26 +02:00
Michael Friedrich
fd233ae901
Use Application::Exit() for main app termination
...
refs #6682
2014-08-04 17:23:41 +02:00
Gunnar Beutner
b574f4cb1e
Use _exit instead of exit
...
fixes #6820
2014-07-30 15:14:47 +02:00
Gerd von Egidy
dfd3091c6a
Call initgroups before setuid to inherit additional group rights
...
fixes #6809
Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-07-30 10:16:17 +02:00
Gunnar Beutner
ec0ae9f5b4
Don't call setgroups() during reload
...
fixes #6790
2014-07-29 11:31:55 +02:00
Gunnar Beutner
4724869e1c
Print application paths for --version
...
fixes #6783
2014-07-23 09:30:56 +02:00
Gunnar Beutner
a49a598eef
Make location of the /run directory configurable
...
fixes #6627
2014-07-22 13:26:37 +02:00
Gunnar Beutner
4cc51f990f
Call setgroups() before setgid/setuid
...
fixes #6659
2014-07-11 14:26:21 +02:00
Gunnar Beutner
ec903058ef
Disable console log after activating all config items
...
fixes #6316
2014-06-24 13:04:07 +02:00
Michael Friedrich
f0b0420256
Error messages: Replace exceptions with log/exit in main application.
...
Refs #6070
2014-06-05 17:20:15 +02:00
Michael Friedrich
17668af2c2
Error messages: Fix Logger exceptions.
...
Refs #6070
2014-06-05 15:35:30 +02:00
Gunnar Beutner
632026cd9f
Rename C++ header files.
...
Fixes #6291
2014-05-25 16:27:14 +02:00
Gunnar Beutner
16a2d36bdc
Rename --debug to --log-level.
...
Refs #6276
2014-05-23 18:11:21 +02:00
Michael Friedrich
09f3040bae
Fix required argument for --debug|-x.
...
Refs #6276
2014-05-23 14:12:55 +02:00
Michael Friedrich
5ec300f68e
Add debug log severity for console logger.
...
Fixes #6276
2014-05-23 11:57:08 +02:00
Gerd von Egidy
e0d4b9fb80
Unlink the pidfile when we really shutdown (not reload).
...
Refs #6118
2014-05-18 18:44:54 +02:00
Gerd von Egidy
e93a22b440
Proof of concept how a real reload-handling with systemd could work.
...
Refs #6118
2014-05-18 18:39:35 +02:00
Gunnar Beutner
4e35c39df0
Fix crash when zones.d directory doesn't exist.
...
Fixes #6224
2014-05-17 12:52:31 +02:00
Gunnar Beutner
d587c962ce
Implement the config::Update message.
...
Refs #6191
2014-05-13 15:57:02 +02:00
Gunnar Beutner
3a1ce23aeb
Implicitly set zone attribute for files includes from zones.d.
...
Refs #6191
2014-05-13 14:40:12 +02:00
Gunnar Beutner
0d36cc8d5f
Implement support for the zones.d config directory.
...
Refs #6191
2014-05-13 13:19:43 +02:00
Gunnar Beutner
12c8814bd8
Fix some more compiler warnings.
...
Refs #5823
2014-05-11 06:43:01 +02:00
Michael Friedrich
d06d4f2540
Include monitoring plugin commands seperately.
...
Fixes #6130
2014-05-10 19:02:51 +02:00
Gunnar Beutner
45270f1bb8
Refactor the agent and cluster components.
...
Refs #6107
2014-05-08 09:13:04 +02:00
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
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