Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

[Bug]: service resource on RHEL 10 using /sbin/service and /sbin/chkconfig instead of /usr/bin/systemctl #112

Description

@cmasopust

Is this a critical security issue?

  • This is not a security issue.

Describe the Bug

Using service resource leads to errors like:
Error: /Stage[main]/Gt_system::Rsyslog/Service[netconsole]/enable: change from 'false' to 'true' failed: Could not enable netconsole: Execution of '/sbin/chkconfig --add netconsole' returned 1: error reading information on service netconsole: No such file or directory (corrective)

patch might simply be to change the defaultfor line in .../provider/service/systemd.rb to
defaultfor :osfamily => :redhat, :operatingsystemmajrelease => ["7", "8", "9", "10"]

Expected Behavior

service resource working as expected

Steps to Reproduce

create service resource and use it on RHEL 10

Environment

Name : openvox-agent
Version : 7.37.2
Platform : RHEL 10

Additional Context

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions