]> err.no Git - systemd/commitdiff
systemctl: load unit if necessary
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2010 22:12:52 +0000 (00:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2010 22:12:52 +0000 (00:12 +0200)
systemctl.vala

index 65ee0fe72f0f70e42b6ddfd47bc64196d3fe91e8..34685e1f8c1694ad19488b6321ad722f488e9c32 100644 (file)
@@ -196,7 +196,7 @@ int main (string[] args) {
 
                         for (int i = 2; i < args.length; i++) {
 
-                                ObjectPath p = manager.get_unit(args[i]);
+                                ObjectPath p = manager.load_unit(args[i]);
 
                                 Unit u = bus.get_object(
                                                 "org.freedesktop.systemd1",