From 6a4c5e6bcb2e6cfed7423fe250672f8e741d3f87 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 13 Nov 2018 14:02:03 +0100 Subject: [PATCH] Imitialize ICINGA2_ERROR_LOG inside the Systemd environment The initscript uses a local default, which is not here for Systemd. --- etc/initsystem/icinga2.service.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/initsystem/icinga2.service.cmake b/etc/initsystem/icinga2.service.cmake index 834a1fc18..ba305408c 100644 --- a/etc/initsystem/icinga2.service.cmake +++ b/etc/initsystem/icinga2.service.cmake @@ -5,6 +5,7 @@ After=syslog.target network-online.target postgresql.service mariadb.service car [Service] Type=notify +Environment="ICINGA2_ERROR_LOG=@ICINGA2_LOGDIR@/error.log" EnvironmentFile=@ICINGA2_SYSCONFIGFILE@ ExecStartPre=@CMAKE_INSTALL_PREFIX@/lib/icinga2/prepare-dirs @ICINGA2_SYSCONFIGFILE@ ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2 daemon --close-stdio -e ${ICINGA2_ERROR_LOG} -- 2.40.0