summaryrefslogtreecommitdiff
path: root/systemctl.vala
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-10 17:37:56 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-10 18:00:22 +0200
commitb152adec93b05c0d01b240e0f28326eb1d8e18e9 (patch)
tree240e8dc421b7a786c9eaddc116709c7f7e595c91 /systemctl.vala
parent51a1a79d3fbb23cfb4ce07ea218e77efbce94cdd (diff)
dbus: add Dump() D-Bus call
Diffstat (limited to 'systemctl.vala')
-rw-r--r--systemctl.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/systemctl.vala b/systemctl.vala
index 22a971cc82..6c01ad1263 100644
--- a/systemctl.vala
+++ b/systemctl.vala
@@ -222,7 +222,9 @@ int main (string[] args) {
MainLoop l = new MainLoop();
l.run();
- } else {
+ } else if (args[1] == "dump")
+ stdout.puts(manager.dump());
+ else {
stderr.printf("Unknown command %s.\n", args[1]);
return 1;
}