From 0398f3da3c93c6dc61eb374211a7f2bbb7d422f8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 6 Apr 2010 21:54:57 +0200 Subject: manager: dump status on SIGUSR1 --- manager.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'manager.c') 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)); } -- cgit v1.2.3-54-g00ecf