switch-to-configuration: Honour RefuseManualStop
This prevents spurious errors about systemd-tmpfiles-setup.service. Backport: 14.04
This commit is contained in:
parent
d056d1d37b
commit
bac68f9747
@ -188,7 +188,7 @@ while (my ($unit, $state) = each %{$activePrev}) {
|
|||||||
if (boolIsTrue($unitInfo->{'X-ReloadIfChanged'} // "no")) {
|
if (boolIsTrue($unitInfo->{'X-ReloadIfChanged'} // "no")) {
|
||||||
write_file($reloadListFile, { append => 1 }, "$unit\n");
|
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;
|
push @unitsToSkip, $unit;
|
||||||
} else {
|
} else {
|
||||||
# If this unit is socket-activated, then stop the
|
# If this unit is socket-activated, then stop the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user