Commit 0398f3da authored by Lennart Poettering's avatar Lennart Poettering
Browse files

manager: dump status on SIGUSR1

parent 2fa086a8
...@@ -1502,6 +1502,16 @@ static int manager_process_signal_fd(Manager *m, bool *quit) { ...@@ -1502,6 +1502,16 @@ static int manager_process_signal_fd(Manager *m, bool *quit) {
break; 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: default:
log_info("Got unhandled signal <%s>.", strsignal(sfsi.ssi_signo)); log_info("Got unhandled signal <%s>.", strsignal(sfsi.ssi_signo));
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment