[systemd-bugs] [Bug 56072] New: systemctl is-enabled fails with absolute path or basename missing "service"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 17 00:18:28 PDT 2012


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

          Priority: medium
            Bug ID: 56072
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: systemctl is-enabled fails with absolute path or
                    basename missing "service"
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: judy.wathen at hp.com
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

Most systemctl "unit file" commands work with basename, basename without
suffix, or absolute path now (October 17, 2012, 194 plus latest fixes).

However, "systemctl is-enabled", run on the booted system (not a chroot) fails
when the argument is either an absolute path or a base name without the suffix
(usually ".service").

Here are a couple examples:

 systemctl is-enabled /usr/lib/systemd/system/cups.service
Failed to issue method call: Invalid argument
[root at tw132001 yum.repos.d]# systemctl is-enabled cups
Failed to issue method call: Invalid argument
[root at tw132001 yum.repos.d]# systemctl is-enabled cups.service
disabled

For comparison, "systemctl enable" takes an argument in any format:

[root at tw132001 yum.repos.d]# systemctl enable cups
[root at tw132001 yum.repos.d]# echo $?
0
[root at tw132001 yum.repos.d]# systemctl enable cups.service
[root at tw132001 yum.repos.d]# echo $?
0
[root at tw132001 yum.repos.d]# systemctl enable
/usr/lib/systemd/system/cups.service
[root at tw132001 yum.repos.d]# echo $?
0
[root at tw132001 yum.repos.d]#

This issue can be reproduced with cups, but other services will probably
demonstrate the issue as well.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20121017/fbd2d2c1/attachment.html>


More information about the systemd-bugs mailing list