switch-to-configuration: Don't try to start masked units

This commit is contained in:
Eelco Dolstra 2014-03-12 18:51:44 +01:00
parent f198c40608
commit 09c14cd8aa

View File

@ -128,7 +128,7 @@ while (my ($unit, $state) = each %{$activePrev}) {
$baseName =~ s/\.[a-z]*$//;
if (-e $prevUnitFile && ($state->{state} eq "active" || $state->{state} eq "activating")) {
if (! -e $newUnitFile) {
if (! -e $newUnitFile || abs_path($newUnitFile) eq "/dev/null") {
push @unitsToStop, $unit;
}