forked from mirrors/nixpkgs
switch-to-configuration: Don't try to start masked units
This commit is contained in:
parent
f198c40608
commit
09c14cd8aa
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue