mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
systemctl: print the user session journal for user session units.
This commit is contained in:
parent
1a6c43e946
commit
cc86e6b86e
@ -2734,13 +2734,23 @@ static void print_status_info(UnitStatusInfo *i) {
|
||||
|
||||
if (i->id && arg_transport != TRANSPORT_SSH) {
|
||||
printf("\n");
|
||||
show_journal_by_unit(stdout,
|
||||
i->id,
|
||||
arg_output,
|
||||
0,
|
||||
i->inactive_exit_timestamp_monotonic,
|
||||
arg_lines,
|
||||
flags);
|
||||
if(arg_scope == UNIT_FILE_SYSTEM)
|
||||
show_journal_by_unit(stdout,
|
||||
i->id,
|
||||
arg_output,
|
||||
0,
|
||||
i->inactive_exit_timestamp_monotonic,
|
||||
arg_lines,
|
||||
flags);
|
||||
else
|
||||
show_journal_by_user_unit(stdout,
|
||||
i->id,
|
||||
arg_output,
|
||||
0,
|
||||
i->inactive_exit_timestamp_monotonic,
|
||||
arg_lines,
|
||||
getuid(),
|
||||
flags);
|
||||
}
|
||||
|
||||
if (i->need_daemon_reload)
|
||||
|
Loading…
Reference in New Issue
Block a user