#include "conf-parser.h"
#include "bus-util.h"
#include "bus-error.h"
+#include "logind.h"
#include "udev-util.h"
#include "formats-util.h"
-#include "signal-util.h"
-#include "logind.h"
+#include "label.h"
+#include "label.h"
static void manager_free(Manager *m);
udev_unref(m->udev);
if (m->unlink_nologin)
- (void) unlink("/run/nologin");
+ unlink("/run/nologin");
bus_verify_polkit_async_registry_free(m->polkit_registry);
if (r < 0)
return log_error_errno(r, "Failed to add match for NameOwnerChanged: %m");
- r = sd_bus_add_match(m->bus,
+ r = sd_bus_add_match(m->bus,
NULL,
"type='signal',"
"sender='org.freedesktop.systemd1',"
match_reloading, m);
if (r < 0)
return log_error_errno(r, "Failed to add match for Reloading: %m");
-
+#if 0
r = sd_bus_call_method(
m->bus,
"org.freedesktop.systemd1",
log_error("Failed to enable subscription: %s", bus_error_message(&error, r));
return r;
}
-
+#endif // 0
r = sd_bus_request_name(m->bus, "org.freedesktop.login1", 0);
if (r < 0)
return log_error_errno(r, "Failed to register name: %m");
static int manager_parse_config_file(Manager *m) {
assert(m);
- return config_parse_many("/etc/systemd/logind.conf",
- CONF_DIRS_NULSTR("systemd/logind.conf"),
+ return config_parse_many("/etc/elogind/elogind.conf",
+ CONF_DIRS_NULSTR("elogind/elogind.conf"),
"Login\0",
config_item_perf_lookup, logind_gperf_lookup,
false, m);
goto finish;
}
- log_debug("logind running as pid "PID_FMT, getpid());
+ log_debug("systemd-logind running as pid "PID_FMT, getpid());
sd_notify(false,
"READY=1\n"
r = manager_run(m);
- log_debug("logind stopped as pid "PID_FMT, getpid());
+ log_debug("systemd-logind stopped as pid "PID_FMT, getpid());
finish:
sd_notify(false,