diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-01-08 17:20:45 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-01-08 22:15:27 -0500 |
commit | d8160f21fd295b451cee9679aa281fedf1cb8e8c (patch) | |
tree | 84fba0483e46825b7b7bc9bc2e5d5a26280b14d1 | |
parent | 354bfd2b166d1044eea05ac9ba1cda05c93a24bc (diff) |
Improve messages about user mode a bit
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | src/core/main.c | 7 | ||||
-rw-r--r-- | units/user@.service.in | 2 |
3 files changed, 8 insertions, 3 deletions
@@ -17,6 +17,8 @@ Bugfixes: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. See system logs and 'systemctl status display-manager.service' for details. +* systemctl --root=container/ set-default ... is totally borked. + External: * ps should gain colums for slice diff --git a/src/core/main.c b/src/core/main.c index 1b1741a645..fb34e4d3d1 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1475,8 +1475,11 @@ int main(int argc, char *argv[]) { if (in_initrd()) log_info("Running in initial RAM disk."); - } else - log_debug(PACKAGE_STRING " running in user mode. (" SYSTEMD_FEATURES ")"); + } else { + _cleanup_free_ char *t = uid_to_name(getuid()); + log_debug(PACKAGE_STRING " running in user mode for user "PID_FMT"/%s. (" SYSTEMD_FEATURES ")", + getuid(), t); + } if (arg_running_as == SYSTEMD_SYSTEM && !skip_setup) { if (arg_show_status || plymouth_running()) diff --git a/units/user@.service.in b/units/user@.service.in index c2d495f53f..bfc9b709d2 100644 --- a/units/user@.service.in +++ b/units/user@.service.in @@ -6,7 +6,7 @@ # (at your option) any later version. [Unit] -Description=User Manager for %i +Description=User Manager for UID %i After=systemd-user-sessions.service [Service] |