From: Lennart Poettering Date: Tue, 6 Apr 2010 19:54:57 +0000 (+0200) Subject: manager: dump status on SIGUSR1 X-Git-Tag: 0.git+20100605+dfd8ee-1~251 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0398f3da3c93c6dc61eb374211a7f2bbb7d422f8;p=systemd manager: dump status on SIGUSR1 --- diff --git a/manager.c b/manager.c index 234fb93c..4cfa6b9c 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)); }