Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #7044] icinga2 init-script terminates with exit code 0 if $DAEMON is not in place or not executable #1941

Closed
icinga-migration opened this issue Sep 1, 2014 · 2 comments
Labels
area/setup Installation, systemd, sample files bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/7044

Created by mhoyer on 2014-09-01 13:16:27 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2014-09-02 11:45:03 +00:00)
Target Version: 2.1.1
Last Update: 2014-09-02 11:45:03 +00:00 (in Redmine)

Icinga Version: 2.0.2

The icinga2 init-script checks if the binary ($DAEMON) is in place and executable, following an exit 0 if it is not. This seems bad as if it doesn't follow LSB rules for non-status init-script actions. It should terminate with exit-code 1 or something more specific. See http://fedoraproject.org/wiki/Packaging:SysVInitScript#Exit\_Codes\_for\_non-Status\_Actions for details.

/etc/init.d/icinga2
line 27: test -x $DAEMON || exit 0

Changesets

2014-09-02 11:40:33 +00:00 by gbeutner dde00a3

Use LSB-compliant exit codes for the init script

fixes #7044
@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-09-02 11:42:08 +00:00

  • Assigned to set to gbeutner
  • Target Version set to 2.1.1
  • Estimated Hours set to 0.2

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-09-02 11:45:03 +00:00

  • Status changed from New to Resolved
  • Done % changed from 0 to 100

Applied in changeset dde00a3.

@icinga-migration icinga-migration added Low bug Something isn't working area/setup Installation, systemd, sample files labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.1.1 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/setup Installation, systemd, sample files bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant