|
Lines 30-36
Link Here
|
| 30 |
#include <linux/vt.h> |
30 |
#include <linux/vt.h> |
| 31 |
#include <sys/timerfd.h> |
31 |
#include <sys/timerfd.h> |
| 32 |
|
32 |
|
|
|
33 |
#if ! defined(DISABLE_SD_DAEMON) && defined(__linux__) |
| 33 |
#include <systemd/sd-daemon.h> |
34 |
#include <systemd/sd-daemon.h> |
|
|
35 |
#endif |
| 34 |
|
36 |
|
| 35 |
#include "logind.h" |
37 |
#include "logind.h" |
| 36 |
#include "dbus-common.h" |
38 |
#include "dbus-common.h" |
|
Lines 1743-1760
Link Here
|
| 1743 |
|
1745 |
|
| 1744 |
log_debug("systemd-logind running as pid %lu", (unsigned long) getpid()); |
1746 |
log_debug("systemd-logind running as pid %lu", (unsigned long) getpid()); |
| 1745 |
|
1747 |
|
|
|
1748 |
#if ! defined(DISABLE_SD_DAEMON) && defined(__linux__) |
| 1746 |
sd_notify(false, |
1749 |
sd_notify(false, |
| 1747 |
"READY=1\n" |
1750 |
"READY=1\n" |
| 1748 |
"STATUS=Processing requests..."); |
1751 |
"STATUS=Processing requests..."); |
| 1749 |
|
1752 |
#endif |
| 1750 |
r = manager_run(m); |
1753 |
r = manager_run(m); |
| 1751 |
|
1754 |
|
| 1752 |
log_debug("systemd-logind stopped as pid %lu", (unsigned long) getpid()); |
1755 |
log_debug("systemd-logind stopped as pid %lu", (unsigned long) getpid()); |
| 1753 |
|
1756 |
|
| 1754 |
finish: |
1757 |
finish: |
|
|
1758 |
#if ! defined(DISABLE_SD_DAEMON) && defined(__linux__) |
| 1755 |
sd_notify(false, |
1759 |
sd_notify(false, |
| 1756 |
"STATUS=Shutting down..."); |
1760 |
"STATUS=Shutting down..."); |
| 1757 |
|
1761 |
#endif |
| 1758 |
if (m) |
1762 |
if (m) |
| 1759 |
manager_free(m); |
1763 |
manager_free(m); |
| 1760 |
|
1764 |
|