chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
units: rename [Meta] section to [Unit]
[elogind.git]
/
systemctl.vala
diff --git
a/systemctl.vala
b/systemctl.vala
index 22a971cc82071950f6a45be4f319f8ef7a5309e4..8f16b90482241ece7947281fbb5c500c8e4bbb65 100644
(file)
--- a/
systemctl.vala
+++ b/
systemctl.vala
@@
-104,7
+104,7
@@
int main (string[] args) {
uint n = 0;
Posix.qsort(list, list.length, sizeof(Manager.UnitInfo), unit_info_compare);
uint n = 0;
Posix.qsort(list, list.length, sizeof(Manager.UnitInfo), unit_info_compare);
- stdout.printf("%-45s %-6s %-12s %-1
7s\n", "UNIT", "LOAD", "ACTIVE
", "JOB");
+ stdout.printf("%-45s %-6s %-12s %-1
2s %-17s\n", "UNIT", "LOAD", "ACTIVE", "SUB
", "JOB");
foreach (var i in list) {
foreach (var i in list) {
@@
-114,7
+114,7
@@
int main (string[] args) {
if (!all && i.active_state == "inactive")
continue;
if (!all && i.active_state == "inactive")
continue;
- stdout.printf("%-45s %-6s %-12s
", i.id, i.load_state, i.active
_state);
+ 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);
if (i.job_id != 0)
stdout.printf(" → %-15s", i.job_type);
@@
-222,7
+222,9
@@
int main (string[] args) {
MainLoop l = new MainLoop();
l.run();
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;
}
stderr.printf("Unknown command %s.\n", args[1]);
return 1;
}