]> granicus.if.org Git - icinga2/commitdiff
Imitialize ICINGA2_ERROR_LOG inside the Systemd environment
authorMichael Friedrich <michael.friedrich@icinga.com>
Tue, 13 Nov 2018 13:02:03 +0000 (14:02 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 13 Nov 2018 15:37:27 +0000 (16:37 +0100)
The initscript uses a local default, which is not here for Systemd.

etc/initsystem/icinga2.service.cmake

index 9c7d817484aa9642fc1c764ede9bfda4d73a8f0f..d30ff750a1a8268758c015b02be4ad5483670532 100644 (file)
@@ -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}