summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-23 22:29:23 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-23 22:29:23 +0200
commit12d138758d38699bec0a1245bbcf1b268668e141 (patch)
treef57b0043e37bb9f12ba58832a989911d88de16f4
parent2d02719c2bcf8b5e30228e00eaceae91946c7551 (diff)
initctl: load the sysv compat targets if they aren't loaded yet
-rw-r--r--initctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/initctl.c b/initctl.c
index a13aed34c2..6dcc86f0fa 100644
--- a/initctl.c
+++ b/initctl.c
@@ -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;
}