git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "nixos/switch-to-configuration: restart changed socket units"

This reverts commit 89806e95363f06869c9de18586e32c8ef65bd2fd. See #74626

commit0f799bd8a4483e230af407b9e6840262a017288c authorDomen Kožar <domen@dev.si> dateSat 30 Nov 2019, 13:46 (7 years ago) parentebe27d6
1 file changed+1−11
nixos/modules/system/activation/switch-to-configuration.pl+1−11
nixos/modules/system/activation/switch-to-configuration.pl+1−11
@@ -214,17 +214,7 @@ while (my ($unit, $state) = each %{$activePrev}) {
214214 # Reload the changed mount unit to force a remount.
215215 $unitsToReload{$unit} = 1;
216216 recordUnit($reloadListFile, $unit);
217− } elsif ($unit =~ /\.socket$/) {
218− my $unitInfo = parseUnit($newUnitFile);
219− # If a socket unit has been changed, the corresponding
220− # service unit has to be stopped before the socket can
221− # be restarted. The service will be started again on demand.
222− my $serviceUnit = $unitInfo->{'Unit'} // "$baseName.service";
223− $unitsToStop{$serviceUnit} = 1;
224− $unitsToStop{$unit} = 1;
225− $unitsToStart{$unit} = 1;
226− recordUnit($startListFile, $unit);
227− } elsif ($unit =~ /\.path$/ || $unit =~ /\.slice$/) {
217+ } elsif ($unit =~ /\.socket$/ || $unit =~ /\.path$/ || $unit =~ /\.slice$/) {
228218 # FIXME: do something?
229219 } else {
230220 my $unitInfo = parseUnit($newUnitFile);