From: Michael Friedrich Date: Tue, 13 Nov 2018 13:02:03 +0000 (+0100) Subject: Imitialize ICINGA2_ERROR_LOG inside the Systemd environment X-Git-Tag: v2.10.2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09e70217fd3c1e750c837cef148c4ccffcbe503f;p=icinga2 Imitialize ICINGA2_ERROR_LOG inside the Systemd environment The initscript uses a local default, which is not here for Systemd. --- 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}