switch-to-configuration: Don't restart systemd-user-sessions.service

Restarting it causes all user sessions to be killed.
This commit is contained in:
Eelco Dolstra 2012-08-23 11:11:14 -04:00
parent af550048e8
commit dfb6e891b9

@ -130,7 +130,9 @@ while (my ($unit, $state) = each %{$activePrev}) {
# FIXME: do something?
} else {
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;
} else {
# Record that this unit needs to be started below. We