Skip to content

runlevel not available on newer distro releases #338

Description

@nsballmann

On newer distro releases, e.g. Fedora 43+, the runlevel binary is not available anymore (by default).

I think there is a systemd replacement, but I haven't had the time to look into this.

This means though, that lib/facter/runlevel.rb#L9 will produce this unexpected stderr output when running facter or openfact (https://github.com/OpenVoxProject/openfact) on distro releases without a runlevel executable:

sh: line 1: /sbin/runlevel: No such file or directory

One option is to confine fact execution to systems which have the runlevel executable.

Another option is to find the systemd replacement command and obtain the run level that way.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

communityContributed from outside the simp org. Applied automatically; not removed.needs-attentionNo human activity past this item's review threshold. Applied and removed automatically.

Type

No type

Projects

  • Status
    In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions