[systemd-bugs] [Bug 55093] New: systemctl error message on fail could be better

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 19 06:03:49 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=55093

             Bug #: 55093
           Summary: systemctl error message on fail could be better
    Classification: Unclassified
           Product: systemd
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: medium
         Component: general
        AssignedTo: systemd-bugs at lists.freedesktop.org
        ReportedBy: dneary at gnome.org
         QAContact: systemd-bugs at lists.freedesktop.org


I was installing dnsmasq and had a silly error in the config file. When I tried
to start the service, I got the following error message: 

[root at clare etc]# service dnsmasq start
Redirecting to /bin/systemctl start  dnsmasq.service
Job failed. See system journal and 'systemctl status' for details.

Not knowing systemd very well, I followed the instructions and ran:

[root at clare etc]# systemctl status
Too few arguments.

I found the system journal errors in /var/log/messages

I have since learned that I needed to call systemctl status with 
"systemctl status dnsmasq.service"
or
"systemctl status -o cat dnsmasq.service"

and that the recommended way to access the system log with systemd is to use
"journalctl".

How about modifying the error message to the following (service name can be
picked up from the command line/service redirect):

Job failed. See 'journalctl -n 50' and 'systemctl status dnsmasq.service' for
details.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the systemd-bugs mailing list