Commit 712ebba2 authored by Michael Stapelberg's avatar Michael Stapelberg
Browse files

fix systemctl enable/disable/… error message “Failed to issue method call:

No such file or directory”

The bug affected only non-native services, i.e. LSB SysV init scripts,
with isc-dhcp-server.service being an example for this commit message.

The bug was introduced with commit
fdcb1bce. The issue is that
enable_unit() would not return even though the SysV init script was
disabled by enable_sysv_units(). enable_unit() then tried to
disable a native systemd unit called isc-dhcp-server.service, even
though there is no such native unit. This is what caused the “no such
file or directory” error message.

Closes: #734809
parent 8d92b6a9
systemd (204-7) unstable; urgency=low
* fix systemctl enable/disable/ error message Failed to issue method call:
No such file or directory (Closes: #734809)
-- Michael Stapelberg <> Sun, 19 Jan 2014 18:40:43 +0100
systemd (204-6) unstable; urgency=low
[ Michael Stapelberg ]
......@@ -4255,6 +4255,9 @@ static int enable_unit(DBusConnection *bus, char **args) {
if (r < 0)
return r;
if (!args[1])
return 0;
if (!bus || avoid_bus()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment