2841493927
This removes the UserTasksMax= setting in logind.conf. Instead, the generic TasksMax= setting on the slice should be used. Instead of a transient unit we use a drop-in to tweak the default definition of a .slice. It's better to use the normal unit mechanisms instead of creating units on the fly. This will also make it easier to start user@.service independently of logind, or set additional settings like MemoryMax= for user slices. The setting in logind is removed, because otherwise we would have two sources of "truth": the slice on disk and the logind config. Instead of trying to coordinate those two sources of configuration (and maintainer overrides to both), let's just convert to the new one fully. Right now now automatic transition mechanism is provided. logind will emit a hint when it encounters the setting, but otherwise it will be ignored. Fixes #2556.
38 lines
1 KiB
Plaintext
38 lines
1 KiB
Plaintext
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# Entries in this file show the compile time defaults.
|
|
# You can change settings by editing this file.
|
|
# Defaults can be restored by simply deleting this file.
|
|
#
|
|
# See logind.conf(5) for details.
|
|
|
|
[Login]
|
|
#NAutoVTs=6
|
|
#ReserveVT=6
|
|
#KillUserProcesses=@KILL_USER_PROCESSES@
|
|
#KillOnlyUsers=
|
|
#KillExcludeUsers=root
|
|
#InhibitDelayMaxSec=5
|
|
#HandlePowerKey=poweroff
|
|
#HandleSuspendKey=suspend
|
|
#HandleHibernateKey=hibernate
|
|
#HandleLidSwitch=suspend
|
|
#HandleLidSwitchExternalPower=suspend
|
|
#HandleLidSwitchDocked=ignore
|
|
#PowerKeyIgnoreInhibited=no
|
|
#SuspendKeyIgnoreInhibited=no
|
|
#HibernateKeyIgnoreInhibited=no
|
|
#LidSwitchIgnoreInhibited=yes
|
|
#HoldoffTimeoutSec=30s
|
|
#IdleAction=ignore
|
|
#IdleActionSec=30min
|
|
#RuntimeDirectorySize=10%
|
|
#RemoveIPC=yes
|
|
#InhibitorsMax=8192
|
|
#SessionsMax=8192
|