summaryrefslogtreecommitdiff
path: root/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-08 00:53:33 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-08 00:53:33 +0200
commite53ae031a0f98f2af37cf3639b29cfd94dc408de (patch)
treea367d9ee8e1df6363ba864e533f314477a81c37d /unit.c
parent7f275a9f1d3854cae637280048c57cca64ce89fe (diff)
dbus: print a line when we connect to dbus
Diffstat (limited to 'unit.c')
-rw-r--r--unit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/unit.c b/unit.c
index e6331b44d3..6b8010b532 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)) {