path: root/src/login/logind-user.h
diff options
authorSven Eden <>2017-01-26 09:56:23 +0100
committerSven Eden <>2017-03-14 10:23:10 +0100
commitdb74dfab5842da3f83d3bb9e2fa3bf8736939ecf (patch)
treef33a44512dea72f0dd475c98d19a1cb223b36e26 /src/login/logind-user.h
parentfaf2e887be42215c1999950d16d1975e70bbdfe9 (diff)
Remove dependency of systemd units, services and slices for new sessions.
* elogind does not support systemd services and units. But at least the units are needed to support the systemd cgroup slice/scope system. * Remove systemd subscription to scope, service and slice jobs. These can not be supported in any way, as they depend on systemd running the machine. * The functions session_start_scope(), user_start_service() and user_start_slice() no longer try to call systemd via dbus for assistance. This way they generate their proper scope, service and slice names, and store them in the Managers HashMaps for session and user units. This should enable us to reverse track pids to users and such stuff, as that is what systemd-logind does, not knowing whether any unit *really* has been started or not. However, this will not work out of the box until we find a way to integrate cg_create_everywhere() into elogind without becoming dependent of systemd unit, service and job knowledge again.
Diffstat (limited to 'src/login/logind-user.h')
1 files changed, 6 insertions, 0 deletions
diff --git a/src/login/logind-user.h b/src/login/logind-user.h
index 722247806..b30e7d60c 100644
--- a/src/login/logind-user.h
+++ b/src/login/logind-user.h
@@ -47,11 +47,17 @@ struct User {
char *state_file;
char *runtime_path;
+ /* These are always NULL, and here just for logind-user-dbus.c
+ to easily provide a NULL value for the user's service and
+ slice properties. */
char *service;
char *slice;
+/// UNNEEDED (and unsupported) by elogind
+#if 0
char *service_job;
char *slice_job;
+#endif // 0
Session *display;