[systemd-devel] Unknown key name 'StopIdleSessionSec' in section 'Login'
David
info at lan-software.com
Wed Oct 23 16:23:34 UTC 2024
Hello, from a novice at system administration and systemd.
A week ago, I installed Google Chrome on a Debian 11 VPS to get access to a headless browser. Soon afterward, ConfigServer (CSF) began sending alerts that 2 processes were exceeding the limit. These 2 processes are:
/lib/systemd/systemd —user
(sd-pam)
The VPS only has two (reseller) users that these processes are running under.
Searching around, I found an article (*1) that seemed to address the situation. In another article (*2), I found the configuration file, incidentally, with every key commented out.
In this config file: /etc/systemd/logind.conf, I added 'StopIdleSessionSec=600’, then restarted logind with:
# systemctl restart systemd-logind
And checked for status with:
# journalctl -u systemd-logind
wherein, the following lines are at the end:
Oct 23 11:35:39 vps.lan-software.com systemd[1]: Stopping User Login Management...
Oct 23 11:35:39 vps.lan-software.com systemd[1]: systemd-logind.service: Succeeded.
Oct 23 11:35:40 vps.lan-software.com systemd[1]: Stopped User Login Management.
Oct 23 11:35:41 vps.lan-software.com systemd[1]: Starting User Login Management...
Oct 23 11:35:41 vps.lan-software.com systemd-logind[94302]: /etc/systemd/logind.conf:43: Unknown key name 'StopIdleSessionSec' in section 'Login', ignoring
Oct 23 11:35:41 vps.lan-software.com systemd-logind[94302]: System has /dev/tty0 but not /sys/class/tty/tty0/active which is broken, ignoring: No such file or directory
Oct 23 11:35:41 vps.lan-software.com systemd[1]: Started User Login Management.
Oct 23 11:35:41 vps.lan-software.com systemd-logind[94302]: New seat seat0.
Oct 23 11:35:41 vps.lan-software.com systemd-logind[94302]: New session 2266973 of user root.
I think the Chrome installation did something that is causing systemd to start a session, but not close it.
How can I get these 2 processes to shutdown?
Is this an issue with systemd or in the configuration of Chrome?
Trying to learn to be a better system admin,
David
*1 - https://www.admin-magazine.com/Archive/2024/79/Automatically-terminate-OpenSSH-sessions
*2 - https://manpages.debian.org/testing/systemd/logind.conf.5.en.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20241023/7f614cb0/attachment.htm>
More information about the systemd-devel
mailing list