1
0
mirror of https://github.com/systemd/systemd.git synced 2025-08-10 09:49:52 +03:00

bus-util: add log message when exiting because of idle

This commit is contained in:
Lennart Poettering
2024-05-08 10:39:29 +02:00
parent afc55a5eff
commit e72d5955f6

View File

@ -148,6 +148,8 @@ int bus_event_loop_with_idle(
return r;
if (r == 0 && !exiting && idle) {
log_debug("Idle for %s, exiting.", FORMAT_TIMESPAN(timeout, 1));
/* Inform the service manager that we are going down, so that it will queue all
* further start requests, instead of assuming we are still running. */
(void) sd_notify(false, NOTIFY_STOPPING);