switch-to-configuration: Don't restart systemd-user-sessions.service
Restarting it causes all user sessions to be killed.
This commit is contained in:
parent
af550048e8
commit
dfb6e891b9
@ -130,7 +130,9 @@ while (my ($unit, $state) = each %{$activePrev}) {
|
|||||||
# FIXME: do something?
|
# FIXME: do something?
|
||||||
} else {
|
} else {
|
||||||
my $unitInfo = parseUnit($newUnitFile);
|
my $unitInfo = parseUnit($newUnitFile);
|
||||||
if (!boolIsTrue($unitInfo->{'X-RestartIfChanged'} // "true")) {
|
if (!boolIsTrue($unitInfo->{'X-RestartIfChanged'} // "true")
|
||||||
|
|| $unit eq "systemd-user-sessions.service")
|
||||||
|
{
|
||||||
push @unitsToSkip, $unit;
|
push @unitsToSkip, $unit;
|
||||||
} else {
|
} else {
|
||||||
# Record that this unit needs to be started below. We
|
# Record that this unit needs to be started below. We
|
||||||
|
Loading…
x
Reference in New Issue
Block a user