From 9fbd5c0841bbce850c078a1b1f2a733f0a7bdad0 Mon Sep 17 00:00:00 2001 From: Gerd von Egidy Date: Sun, 15 Jun 2014 22:28:41 +0200 Subject: [PATCH] Document new CMake parameters and startup for systemd-support. --- INSTALL | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/INSTALL b/INSTALL index b948d6c88..5329fb1cb 100644 --- a/INSTALL +++ b/INSTALL @@ -127,7 +127,10 @@ variables are supported: - ICINGA2_GIT_VERSION_INFO: Whether to use Git to determine the version number; defaults to "ON" - ICINGA2_COMMAND_GROUP: The command group Icinga 2 should use; default to "icingacmd" - CMAKE_INSTALL_SYSCONFDIR: The configuration directory; defaults to CMAKE_INSTALL_PREFIX/etc +- ICINGA2_SYSCONFIGFILE: Where to put the config file the initscript/systemd pulls it's dirs from; + defaults to CMAKE_INSTALL_PREFIX/etc/sysconfig/icinga2 - CMAKE_INSTALL_LOCALSTATEDIR: The state directory; defaults to CMAKE_INSTALL_PREFIX/var +- USE_SYSTEMD=ON|OFF: Use systemd or a classic SysV initscript; defaults to OFF ### Building Icinga 2 RPMs @@ -161,6 +164,9 @@ Icinga 2 can be started as daemon using the provided init script: # /etc/init.d/icinga2 Usage: /etc/init.d/icinga2 {start|stop|restart|reload|checkconfig|status} +Or if your distribution uses systemd: +# systemctl {start|stop|reload|status|enable|disable} icinga2.service + Icinga 2 reads a single configuration file which is used to specify all configuration settings (global settings, hosts, services, etc.). The configuration format is explained in detail in the doc/ directory.