1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

manager: dump status on SIGUSR1

This commit is contained in:
Lennart Poettering 2010-04-06 21:54:57 +02:00
parent 2fa086a8e0
commit 0398f3da3c

View File

@ -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));
}