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:
parent
2fa086a8e0
commit
0398f3da3c
10
manager.c
10
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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user