diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-06 21:54:57 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-06 21:54:57 +0200 |
commit | 0398f3da3c93c6dc61eb374211a7f2bbb7d422f8 (patch) | |
tree | dca01d6f4f202cd8efb7447c51a911e160b7eab8 | |
parent | 2fa086a8e02b1b2d62a9a424b41944f3a2251e60 (diff) |
manager: dump status on SIGUSR1
-rw-r--r-- | manager.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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)); } |