From: Lennart Poettering Date: Wed, 7 Apr 2010 22:53:33 +0000 (+0200) Subject: dbus: print a line when we connect to dbus X-Git-Tag: 0.git+20100605+dfd8ee-1~209 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e53ae031a0f98f2af37cf3639b29cfd94dc408de;p=systemd dbus: print a line when we connect to dbus --- diff --git a/unit.c b/unit.c index e6331b44..6b8010b5 100644 --- a/unit.c +++ b/unit.c @@ -916,14 +916,17 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) { if (!UNIT_IS_ACTIVE_OR_RELOADING(os) && UNIT_IS_ACTIVE_OR_RELOADING(ns)) { if (unit_has_name(u, SPECIAL_DBUS_SERVICE)) { + log_info("D-Bus became available, trying to reconnect."); /* The bus just got started, hence try to connect to it. */ bus_init_system(u->meta.manager); bus_init_api(u->meta.manager); } - if (unit_has_name(u, SPECIAL_SYSLOG_SERVICE)) + if (unit_has_name(u, SPECIAL_SYSLOG_SERVICE)) { /* The syslog daemon just got started, hence try to connect to it. */ + log_info("Syslog became available, trying to reconnect."); log_open_syslog(); + } } else if (UNIT_IS_ACTIVE_OR_RELOADING(os) && !UNIT_IS_ACTIVE_OR_RELOADING(ns)) {