Commit Graph

31 Commits

Author SHA1 Message Date
Dirk Goetz c7c3cceba8 Only execute chcon if selinux is enabled and use full context
fixes #10773
2015-12-07 10:13:40 +01:00
Gunnar Beutner 9f44fadb65 Fix typo in prepare-dirs / safe-reload
fixes #10663
2015-11-18 20:18:04 +01:00
Gunnar Beutner 991bb0cd7e Don't use 'which' in the 'prepare-dirs' script
refs #10417
2015-11-06 17:43:08 +01:00
Gunnar Beutner 2a2da04af6 Fix: 'which' isn't available on minimal CentOS installs
fixes #10417
2015-10-21 14:41:48 +02:00
Dirk Goetz 167f43a231 added chcon to systemd safe-reload script
Selinux: Added support for notifications

refs #8332
2015-06-01 13:25:58 +02:00
Dirk Goetz 5d93b968fe added restorecon to systemd prepare-dirs script
refs #8332
2015-06-01 13:25:58 +02:00
Michael Friedrich 78bfd0204c Update copyright year 2015-01-22 12:00:23 +01:00
Gunnar Beutner bd7b2f30ef Validate configuration files during reload
fixes #7045
2014-12-11 09:27:31 +01:00
Malte Rabenseifner 76d774d396 Fix group permission in prepare-dirs
fixes #7890

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2014-11-29 20:14:34 +01:00
Gunnar Beutner 7ee0eef562 Move the icinga2-prepare-dirs script to /usr/lib
fixes #7786
2014-11-27 14:47:51 +01:00
Gunnar Beutner 9f0e0aac86 Fix the init script
refs #7613
2014-11-26 08:16:13 +01:00
Michael Friedrich 9818477a44 Make sure that user/group exists when starting Icinga 2
fixes #7173
fixes #7613
2014-11-25 18:44:25 +01:00
Gunnar Beutner 6e17eadf8f Remove {DAEMON,ICINGA2}_USER and {DAEMON,ICINGA2}_GROUP variables
refs #7370
2014-10-20 21:41:04 +02:00
Gunnar Beutner ac47649722 Remove unnecessary arguments from the systemd service file 2014-10-17 14:37:43 +02:00
Michael Friedrich a895a6236a Fix systemd unit file
refs #7246
2014-10-16 12:08:21 +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 a4081f1445 Implement support for CLI commands
fixes #7246
2014-10-08 15:33:10 +02:00
Gunnar Beutner 5ae1f4273c Init script: Check whether the PID file exists
fixes #7047
2014-09-02 13:48:48 +02:00
Gunnar Beutner dde00a3f16 Use LSB-compliant exit codes for the init script
fixes #7044
2014-09-02 13:40:33 +02:00
Gunnar Beutner 495bc5b733 Use the icingacmd group for /var/{cache,log,run}/icinga2
refs #6948
2014-08-19 14:05:02 +02:00
Gunnar Beutner 72d66e4f17 Remove if(NOT DEFINED ICINGA2_SYSCONFIGFILE) in etc/initsystem/CMakeLists.txt
fixes #6832
2014-08-01 12:26:45 +02:00
Gunnar Beutner a49a598eef Make location of the /run directory configurable
fixes #6627
2014-07-22 13:26:37 +02:00
Michael Friedrich d56da32a16 Use CMAKE_INSTALL_FULL_SYSCONFDIR for ICINGA2_SYSCONFIGFILE variable
fixes #6657
2014-07-09 17:20:23 +02:00
Gerd von Egidy 9667fb40b7 Improve the systemd service definition file
- put "Icinga" back in the "Description=" field as usually only the description is displayed on unit start/stop or shown in syslog
- add dependency to carbon-cache.service
(systemd only cares about dependencies if the respective services are enabled, so this does not hurt if someone does not have carbon-cache
installed at all or is not using it at the moment)

fixes #6551

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-06-24 13:40:44 +02:00
Gerd von Egidy 933e2480fc add new cmake option INSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT requested for Gentoo packaging
fixes #6498

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-06-24 13:39:38 +02:00
Gerd von Egidy 3ac3c91499 Separate CMakeLists.txt for etc/initsystem.
Refs #6491
2014-06-16 01:58:59 +02:00
Gerd von Egidy fe62fb90e6 Don't call check_run in the initscript, this function is gone.
Refs #4794
2014-06-15 20:08:45 +02:00
Gerd von Egidy dd9b7bcd73 Move the sysdefines.conf file to /etc/sysconfig.
As /etc/sysconfig is distro specific, the filename used can be configured via the CMake parameter
ICINGA2_SYSCONFIGFILE

Refs #4794
2014-06-15 19:47:27 +02:00
Sam Kottler 4568f68f90 Remove mention of icinga in the description since it's already in the name and might cause versioning confusion
Refs #4794
2014-06-15 17:00:30 +02:00
Gerd von Egidy 4ebde46520 Move code preparing dirs and permissions to icinga2-prepare-dirs, use this for SysV-Init and systemd.
Refs #4794

Conflicts:
	etc/initsystem/icinga2.init.d.cmake
2014-06-15 16:25:50 +02:00
Gerd von Egidy ef49658474 Unify resources for SysV-Init and systemd.
- Move system-specific defines like paths and usernames to /etc/icinga2/sysdefines.conf
  Do not use /etc/sysconfig for this as per suggestion on the systemd mailinglist: it is RedHat-specific
- Use /etc/icinga2/sysdefines.conf in SysV-Init and systemd
- Move both the sources of the SysV-Initscript and the systemd-service definition to etc/initsystem

Refs #4794

Conflicts:
	etc/initsystem/icinga2.init.d.cmake
2014-06-15 15:49:13 +02:00