NAME

systemd-user-sessions.service, systemd-user-sessions – Permit user logins after boot, prohibit user logins at shutdown  

SYNOPSIS

systemd-user-sessions.service

/lib/systemd/systemd-user-sessions  

DESCRIPTION

systemd-user-sessions.service is a service that controls user logins. After basic system initialization is complete it removes /run/nologin, thus permitting logins. Before system shutdown it creates /run/nologin, thus prohibiting further logins. At the same time it also kills all user processes, so that system shutdown may proceed without any remaining user processes around.  

Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.