summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-06 21:54:57 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-06 21:54:57 +0200
commit0398f3da3c93c6dc61eb374211a7f2bbb7d422f8 (patch)
treedca01d6f4f202cd8efb7447c51a911e160b7eab8
parent2fa086a8e02b1b2d62a9a424b41944f3a2251e60 (diff)
manager: dump status on SIGUSR1
-rw-r--r--manager.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/manager.c b/manager.c
index 234fb93c1e..4cfa6b9cdc 100644
--- a/manager.c
+++ b/manager.c
@@ -1502,6 +1502,16 @@ static int manager_process_signal_fd(Manager *m, bool *quit) {
break;
+ case SIGUSR1:
+
+ printf("→ By units:\n");
+ manager_dump_units(m, stdout, "\t");
+
+ printf("→ By jobs:\n");
+ manager_dump_jobs(m, stdout, "\t");
+
+ break;
+
default:
log_info("Got unhandled signal <%s>.", strsignal(sfsi.ssi_signo));
}