systemctl output sent to stderr which may not help other software to detect whether starting of the service was failure or success?

Solution Verified - Updated -

Issue

  • The output of 'systemctl enable ' is sent to standard error, although the command completes successfully (output: ln -s '/etc/systemd/system/.service' '/etc/systemd/system/multi-user.target.wants/.service'). This causes problems when automation tools use the output channel as an indicator about failure or success. i.e with BMC BladeLogic.

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.