Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: liske/needrestart
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: drivenet/needrestart
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 25, 2024

  1. Copy the full SHA
    34cf7bd View commit details
Showing with 4 additions and 4 deletions.
  1. +4 −4 needrestart
8 changes: 4 additions & 4 deletions needrestart
Original file line number Diff line number Diff line change
@@ -1090,8 +1090,8 @@ if(defined($opt_l) && !$uid) {
my @sorted_override_rc_keys = sort keys %{$nrconf{override_rc}};

foreach my $rc (sort { lc($a) cmp lc($b) } keys %restart) {
# always combine restarts in one systemctl command
local $nrconf{systemctl_combine} = 1 unless($opt_r eq 'l');
# never combine restarts in one systemctl command to prevent extra load
#local $nrconf{systemctl_combine} = 1 unless($opt_r eq 'l');

if($opt_b) {
print "NEEDRESTART-SVC: $rc\n" unless($opt_p || $opt_o);
@@ -1186,8 +1186,8 @@ if(defined($opt_l) && !$uid) {
$ui->notice(__ 'Restarting services...');
$ui->query_pkgs(__('Services to be restarted:'), $nrconf{defno}, \%rs, $nrconf{override_rc},
sub {
# always combine restarts in one systemctl command
local $nrconf{systemctl_combine} = 1;
# never combine restarts in one systemctl command to prevent extra load
#local $nrconf{systemctl_combine} = 1;

my $rc = shift;
@skipped_services = grep { $_ ne $rc; } @skipped_services;