Skip to content

systemd provider should expose systemd command output #9567

@pclalv

Description

@pclalv

Use Case

When debugging an issue with a failing systemd command (start, restart, and stop), it helps to know the systemd command's output.

Describe the Solution You Would Like

When the systemd provider's methods start, restart, and stop raise a Puppet::Error, I want that error to include the systemd command's output.

Describe Alternatives You've Considered

If the user wants this output, they have little recourse but to inspect the gem's source code and modify it in-place.

Additional Context

#prepare_error_message already accepts an exception, but it does nothing with it. This exception includes the systemd command's output. Implementing this improvement is a matter of figuring out where to insert exception.message in the error_result string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions