--- src/login/logind.c.ori 2013-03-09 16:44:01.375402297 +0100 +++ src/login/logind.c 2013-03-09 16:44:30.975030180 +0100 @@ -30,7 +30,9 @@ #include #include +#if ! defined(DISABLE_SD_DAEMON) && defined(__linux__) #include +#endif #include "logind.h" #include "dbus-common.h" @@ -1743,18 +1745,20 @@ log_debug("systemd-logind running as pid %lu", (unsigned long) getpid()); +#if ! defined(DISABLE_SD_DAEMON) && defined(__linux__) sd_notify(false, "READY=1\n" "STATUS=Processing requests..."); - +#endif r = manager_run(m); log_debug("systemd-logind stopped as pid %lu", (unsigned long) getpid()); finish: +#if ! defined(DISABLE_SD_DAEMON) && defined(__linux__) sd_notify(false, "STATUS=Shutting down..."); - +#endif if (m) manager_free(m);