Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661490 - =net-analyzer/icinga2-2.9.0 misses defaults for ICINGA2_STARTUP_LOG and ICINGA2_ERROR_LOG
Summary: =net-analyzer/icinga2-2.9.0 misses defaults for ICINGA2_STARTUP_LOG and ICING...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-18 10:42 UTC by Ralph Seichter
Modified: 2018-07-21 21:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Seichter 2018-07-18 10:42:49 UTC
Version 2.9.0 of Icinga2 can no longer be started using default settings alone. The following error is displayed if the ICINGA2_STARTUP_LOG variable is not set:

  # /etc/init.d/icinga2 start
  /etc/init.d/icinga2: line 41: $ICINGA2_STARTUP_LOG: ambiguous redirect
   * Icinga2 detected configuration errors. Check '' for details.
   * ERROR: icinga2 failed to start

After setting ICINGA2_STARTUP_LOG, startup fails because ICINGA2_ERROR_LOG is not set, causing a missing argument error for the "-e" option in ICINGA2_DAEMON_ARGS:

  # /etc/init.d/icinga2 start
   * Error starting icinga2. '/var/log/icinga2/startup.log' for details.
   * ERROR: icinga2 failed to start
  # cat /var/log/icinga2/startup.log
  [2018-07-18 12:25:16 +0200] critical/icinga-app: Error while parsing
   command-line options: the required argument for option '--errorlog'
   is missing
   * start-stop-daemon: failed to start `/usr/sbin/icinga2'
Comment 1 Larry the Git Cow gentoo-dev 2018-07-21 21:24:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9179024f51643e2909a6d84049e69f887eabd9f9

commit 9179024f51643e2909a6d84049e69f887eabd9f9
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2018-07-21 21:24:03 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2018-07-21 21:24:38 +0000

    net-analyzer/icinga2: 2.9.0-r1 fix init script
    
    Closes: https://bugs.gentoo.org/661490
    Package-Manager: Portage-2.3.43, Repoman-2.3.10

 net-analyzer/icinga2/files/icinga2.initd-2         | 91 ++++++++++++++++++++++
 ...cinga2-2.9.0.ebuild => icinga2-2.9.0-r1.ebuild} |  2 +-
 net-analyzer/icinga2/icinga2-9999.ebuild           |  2 +-
 3 files changed, 93 insertions(+), 2 deletions(-)