switch-to-configuration: Honour RefuseManualStop

This prevents spurious errors about systemd-tmpfiles-setup.service.

Backport: 14.04
This commit is contained in:
Eelco Dolstra 2014-05-05 14:52:24 +02:00
parent d056d1d37b
commit bac68f9747

View file

@ -188,7 +188,7 @@ while (my ($unit, $state) = each %{$activePrev}) {
if (boolIsTrue($unitInfo->{'X-ReloadIfChanged'} // "no")) {
write_file($reloadListFile, { append => 1 }, "$unit\n");
}
elsif (!boolIsTrue($unitInfo->{'X-RestartIfChanged'} // "yes")) {
elsif (!boolIsTrue($unitInfo->{'X-RestartIfChanged'} // "yes") || boolIsTrue($unitInfo->{'RefuseManualStop'} // "no") ) {
push @unitsToSkip, $unit;
} else {
# If this unit is socket-activated, then stop the