Bug 725745
| Summary: | systemctl is-enabled not working correctly | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | cornel panceac <cpanceac> |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | harald, johannbg, lpoetter, mads, metherid, mschmidt, notting, plautrba, samuel-rhbugs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-16 00:25:41 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
cornel panceac
2011-07-26 12:48:13 UTC
To clarify last line above: it displays 0 whether the service is enabled or not, as long as it's not in /lib/*/ . Example: # systemctl enable sshd.socket # ls -l /lib/systemd/system/*wants/ | grep -i sshd # ls -l /etc/systemd/system/*wants/ | grep -i sshd lrwxrwxrwx. 1 root root 31 Jul 26 16:45 sshd.socket -> /lib/systemd/system/sshd.socket # systemctl is-enabled sshd.socket;echo $? 0 # systemctl disable sshd.socket rm '/etc/systemd/system/sockets.target.wants/sshd.socket' # systemctl is-enabled sshd.socket;echo $? 1 But # ls /lib/systemd/system/multi-user.target.wants/ dbus.service getty.target plymouth-quit-wait.service systemd-ask-password-wall.path fedora-sysinit-unhack.service plymouth-quit.service rc-local.service systemd-user-sessions.service # mv /lib/systemd/system/multi-user.target.wants/rc-local.service ~ # systemctl --system daemon-reload # ls /lib/systemd/system/*wants/ | grep -i rc-local # ls /etc/systemd/system/*wants/ | grep -i rc-local # systemctl is-enabled rc-local.service ; echo $? 0 Oops, returns 0 as long as it *is* under /lib . Sorry for this. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. In F16 this is fixed - 'systemctl is-enabled ...' prints the state to stdout. It's not the kind of change that would be good to backport at this point, so WONTFIX for F15. |