@@ -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);