chiark / gitweb /
systemctl: load unit if needed when isolating
[elogind.git] / systemctl.vala
index 65ee0fe72f0f70e42b6ddfd47bc64196d3fe91e8..10bb0eac9928ec6f165b7f476696acfa20c0f763 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",
@@ -222,7 +222,7 @@ int main (string[] args) {
                                 return 1;
                         }
 
-                        ObjectPath p = manager.get_unit(args[2]);
+                        ObjectPath p = manager.load_unit(args[2]);
 
                         Unit u = bus.get_object(
                                         "org.freedesktop.systemd1",