<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hello, from a novice at system administration and systemd.<div><br></div><div>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:</div><div><br></div><div>/lib/systemd/systemd —user</div><div>(sd-pam)</div><div><br></div><div>The VPS only has two (reseller) users that these processes are running under.</div><div><br></div><div>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.</div><div><br></div><div>In this config file: /etc/systemd/logind.conf, I added 'StopIdleSessionSec=600’, then restarted logind with:</div><div><br></div><div># systemctl restart systemd-logind</div><div><br></div><div>And checked for status with:</div><div><br></div><div># journalctl -u systemd-logind</div><div><br></div><div>wherein, the following lines are at the end:</div><span><br></span><span>Oct 23 11:35:39 vps.lan-software.com systemd[1]: Stopping User Login Management...<br>
Oct 23 11:35:39 vps.lan-software.com systemd[1]: systemd-logind.service: Succeeded.<br>
Oct 23 11:35:40 vps.lan-software.com systemd[1]: Stopped User Login Management.<br>
Oct 23 11:35:41 vps.lan-software.com systemd[1]: Starting User Login Management...<br>
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<br>
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<br>
Oct 23 11:35:41 vps.lan-software.com systemd[1]: Started User Login Management.<br>
Oct 23 11:35:41 vps.lan-software.com systemd-logind[94302]: New seat seat0.<br>
Oct 23 11:35:41 vps.lan-software.com systemd-logind[94302]: New session 2266973 of user root.</span><div><span><br></span></div><div><span>I think the Chrome installation did something that is causing systemd to start a session, but not close it.</span></div><div><span><br></span></div><div>How can I get these 2 processes to shutdown? </div><div><br></div><div>Is this an issue with systemd or in the configuration of Chrome?</div><div><br></div><div>Trying to learn to be a better system admin,</div><div><br></div><div>David</div><div><br></div><div><br></div><div>*1 - <a href="https://www.admin-magazine.com/Archive/2024/79/Automatically-terminate-OpenSSH-sessions">https://www.admin-magazine.com/Archive/2024/79/Automatically-terminate-OpenSSH-sessions</a><br></div><div>*2 - https://manpages.debian.org/testing/systemd/logind.conf.5.en.html</div><div><br></div><div></div><div></div></body></html>