]> granicus.if.org Git - icinga2/commitdiff
Imitialize ICINGA2_ERROR_LOG inside the Systemd environment 6773/head
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 13:02:03 +0000 (14:02 +0100)
The initscript uses a local default, which is not here for Systemd.

etc/initsystem/icinga2.service.cmake

index 834a1fc185b266c890a03b70468e079db4dbe456..ba305408ca4680640818d6275745d26f4ead3d76 100644 (file)
@@ -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}