Commit Graph

41 Commits

Author SHA1 Message Date
Michael Friedrich 6bebdddf98 Less verbose start output using the initscript
All output is dumped to startup.log and only shown in case of
'checkconfig' as parameter, but not during a reload/restart.

Furtermore some additional formatting to make it fit line by line.

fixes #5822
2014-06-12 16:05:45 +02:00
Michael Friedrich 3f361bcb05 Fix checkconfig error message.
Fixes #6269
2014-05-22 17:26:56 +02:00
Michael Friedrich 2cfc0afc8a icinga2 init script should start/stop mysql/pgsql.
Fixes #5479
2014-04-29 17:26:39 +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
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 cf3f0eaee7 Chown log/pid on startup.
Refs #5787
2014-03-17 18:06:23 +01:00
Gunnar Beutner a066cbf110 Init script shouldn't run config validation as root.
Fixes #5761
2014-03-17 10:14:21 +01:00
Gunnar Beutner 4d6088bee1 Stop checks during shutdown.
Fixes #5784
2014-03-17 09:04:19 +01:00
Michael Friedrich 1e9f2f57a3 Do not start, restart, reload on config validation errors.
Fixes #5781
2014-03-16 23:26:47 +01:00
Johannes Meyer b39b241591 Refactor output of all vm-tests 2014-02-14 16:05:58 +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 7d8733c033 Fix some more RPM warnings.
Fixes #5231
2013-11-27 14:43:11 +01:00
Gunnar Beutner 0e086118ca Fix file permissions for /var/*/icinga2 and /etc/icinga.
Fixes #5221
2013-11-26 14:21:40 +01:00
Gunnar Beutner 7910a8fa37 Fix RPM warnings.
Fixes #5193
2013-11-25 20:28:06 +01:00
Gunnar Beutner 1ee21816e4 Set NPROC limit in the init script.
Refs #5050
2013-11-15 14:10:52 +01:00
Gunnar Beutner 979df4e110 Create new threads more aggressively right after program start.
Refs #5050
2013-11-15 12:36:52 +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 0c488c84ad Update icinga2 path in the init script. 2013-10-21 16:43:12 +02:00
Gunnar Beutner 8d4e7bc002 Make sure that the restart action doesn't fail when the PID file isn't there. 2013-10-14 18:02:37 +02:00
Gunnar Beutner 6881b7085b Update documentation. 2013-10-10 14:24:19 +02:00
Gunnar Beutner 55ba6bd65c Increase file descriptor limit in the init script. 2013-10-07 09:35:13 +02:00
Michael Friedrich d97d2e399d initscript: Fix description.
Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2013-10-02 17:33:24 +02:00
Michael Friedrich 9c6b79e4f2 Install /var/run/icinga2/rw command mode, add configure options.
- changed locations for icinga2.cmd and livestatus unix socket
- make install creates /var/run/icinga2/rw and sets g+s for
  icinga:icingacmd
- configure options: --with-icinga[cmd]-{user,group}=
- add autoconf macros to check user/group and bail early if not created
- update documentation/INSTALL

fixes #4444
refs #3186
2013-09-27 19:41:08 +02:00
Gunnar Beutner 3726470efb Update documentation. 2013-09-27 13:56:24 +02:00
Gunnar Beutner 4b7c9c413d Implement init script option: checkconfig. 2013-09-25 12:42:53 +02:00
Gunnar Beutner d9a283fc89 Rename command-line parameter: -v -> -C 2013-09-25 09:48:45 +02:00
Gunnar Beutner 12ebf48b0e Implement setgid/setuid support.
Fixes #3841
2013-09-15 10:28:54 +02:00
Gunnar Beutner e8c61a578f Implement restarting Icinga. 2013-08-30 14:27:24 +02:00
Gunnar Beutner e9e55cd8c0 Remove the replication feature and clean up the code. 2013-08-26 14:56:38 +02:00
Michael Friedrich 8613beb539 Fix Icinga 2 Binary is in the wrong directory.
fixes #4539
2013-08-16 14:50:01 +02:00
Gunnar Beutner d03d6e14bf Init script: Fix shell redirection. 2013-05-03 14:49:21 +02:00
Gunnar Beutner 8f5c5b68da Implement -d (daemonize) and -e (errorlog). 2013-05-03 13:39:31 +02:00
Gunnar Beutner 16e2fcdf2a Init script: Fix incorrect output redirection. 2013-03-12 16:16:49 +01:00
Gunnar Beutner 4b2d828b99 Refactor the init script and remove the -d option.
Fixes #3666
2013-03-12 11:48:45 +01:00
Gunnar Beutner b19eedf8ec Fix: $prefix/var not created during 'make install', fails on cmd pipe creation
Fixes #3815
2013-03-12 09:58:58 +01:00
Michael Friedrich d528ed2bba fix pid file location in initscript too
fixes #3670
2013-03-10 13:55:28 +01:00
Michael Friedrich 312756a886 update .gitignore 2013-02-04 18:36:21 +01:00
Gunnar Beutner c4293cfa25 Added init script.
Fixes #3114
2013-02-04 12:52:39 +01:00