diff --git a/needrestart b/needrestart index 755ce20..7f6b635 100755 --- a/needrestart +++ b/needrestart @@ -676,9 +676,14 @@ if(defined($opt_l)) { push(@{ $sessions{$1}->{"session #$2"}->{ $ptable->{$pid}->{fname} } }, $pid); next; } + if($cgroup =~ m@/user\@(\d+)\.service(/.+)?/([^/]+\.service)$@) { + print STDERR "$LOGPREF #$pid part of user service: uid=$1 unit=$3\n" if($nrconf{verbosity} > 1); + push(@{ $sessions{$1}->{'user service'}->{ $3 } }, $pid); + next; + } if($cgroup =~ m@/user\@(\d+)\.service@) { - print STDERR "$LOGPREF #$pid part of user manager service: uid=$1\n" if($nrconf{verbosity} > 1); - push(@{ $sessions{$1}->{'user manager service'}->{ $ptable->{$pid}->{fname} } }, $pid); + print STDERR "$LOGPREF #$pid part of user manageruid=$1\n" if($nrconf{verbosity} > 1); + push(@{ $sessions{$1}->{'user manager'}->{ $ptable->{$pid}->{fname} } }, $pid); next; } if($cgroup =~ m@/machine.slice/machine.qemu(.*).scope@) {