From 09e70217fd3c1e750c837cef148c4ccffcbe503f 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 9c7d81748..d30ff750a 100644 --- a/etc/initsystem/icinga2.service.cmake +++ b/etc/initsystem/icinga2.service.cmake @@ -4,6 +4,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