chiark / gitweb /
build fix for opensuse
[elogind.git] / systemctl.vala
index feacdb2b7b1e25319e0d0511bee968cd392224ab..388ab7d505a7eaefac77e87de9b73cca42b808e5 100644 (file)
@@ -70,7 +70,7 @@ static const OptionEntry entries[] = {
 
 int main (string[] args) {
 
-        OptionContext context = new OptionContext("[OPTION...] [COMMAND [ARGUMENT...]]");
+        OptionContext context = new OptionContext("[COMMAND [ARGUMENT...]]");
         context.add_main_entries(entries, null);
         context.set_description(
                         "Commands:\n" +
@@ -85,7 +85,7 @@ int main (string[] args) {
                         "  restart [NAME...]   Restart on or more units\n" +
                         "  reload [NAME...]    Reload on or more units\n" +
                         "  monitor             Monitor unit/job changes\n" +
-                        "  dump                Dump servier status\n" +
+                        "  dump                Dump server status\n" +
                         "  snapshot [NAME]     Create a snapshot\n" +
                         "  daemon-reload       Reload daemon configuration\n" +
                         "  daemon-reexecute    Reexecute daemon\n");
@@ -122,7 +122,7 @@ int main (string[] args) {
                                 stdout.printf("%-45s %-6s %-12s %-12s", i.id, i.load_state, i.active_state, i.sub_state);
 
                                 if (i.job_id != 0)
-                                        stdout.printf("  %-15s", i.job_type);
+                                        stdout.printf(" -> %-15s", i.job_type);
 
                                 stdout.puts("\n");
                                 n++;
@@ -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",