mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
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?
|
||||
} 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
|
||||
|
Loading…
Reference in New Issue
Block a user