Merge pull request #6773 from Icinga/bugfix/systemd-error-log

Initialize ICINGA2_ERROR_LOG inside the systemd environment
This commit is contained in:
Michael Friedrich 2018-11-13 16:36:54 +01:00 committed by GitHub
commit 31c81dc7ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View 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}