chiark / gitweb /
systemctl: load unit if needed when isolating
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2010 23:54:12 +0000 (01:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2010 23:54:12 +0000 (01:54 +0200)
systemctl.vala

index 34685e1..10bb0ea 100644 (file)
@@ -222,7 +222,7 @@ int main (string[] args) {
                                 return 1;
                         }
 
                                 return 1;
                         }
 
-                        ObjectPath p = manager.get_unit(args[2]);
+                        ObjectPath p = manager.load_unit(args[2]);
 
                         Unit u = bus.get_object(
                                         "org.freedesktop.systemd1",
 
                         Unit u = bus.get_object(
                                         "org.freedesktop.systemd1",