Skip to content

Commit

Permalink
Merge pull request #215 from ahktenzero/master
Browse files Browse the repository at this point in the history
Update LXC/D cgroup regex for LXC 4.0
  • Loading branch information
liske authored Sep 18, 2021
2 parents e4c352a + d2c4096 commit c5e6f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl/lib/NeedRestart/CONT/LXC.pm
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ sub check {
}

# look for LXC cgroups
return unless($cg =~ /^\d+:[^:]+:\/lxc(?:.payload)?\/([^\/\n]+)($|\/)/m);
return unless($cg =~ /^\d+:[^:]+:\/lxc(?:.payload)?[.\/]([^\/\n]+)($|\/)/m);

my $name = $1;
my $type = ($self->{has_lxd} && -d qq($self->{lxd_container_path}/$name) ? 'LXD' : 'LXC');
Expand Down

0 comments on commit c5e6f68

Please sign in to comment.