mirror of
https://github.com/systemd/systemd.git
synced 2025-02-22 09:57:34 +03:00
initctl: load the sysv compat targets if they aren't loaded yet
This commit is contained in:
parent
2d02719c2b
commit
12d138758d
@ -109,7 +109,7 @@ static void change_runlevel(Server *s, int runlevel) {
|
||||
|
||||
log_debug("Running request %s", target);
|
||||
|
||||
if (!(m = dbus_message_new_method_call("org.freedesktop.systemd1", "/org/freedesktop/systemd1", "org.freedesktop.systemd1.Manager", "GetUnit"))) {
|
||||
if (!(m = dbus_message_new_method_call("org.freedesktop.systemd1", "/org/freedesktop/systemd1", "org.freedesktop.systemd1.Manager", "LoadUnit"))) {
|
||||
log_error("Could not allocate message.");
|
||||
goto finish;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user