On a system with systemd's tmpfiles.d files installed, only root can
log in after boot. The files have a boot-only entry:
f+! /run/nologin 0644 - - - "System is booting up. ..."
On systemd the file is removed by systemd-user-sessions when boot is
done. Finit runs the entry, but only removes /etc/nologin, so
pam_nologin keeps refusing everyone but root.
Remove /run/nologin too when leaving runlevel S.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
A ! after the type marks an entry that is only safe to run at boot.
Finit's own files have them, like this one in x11.conf:
D! /tmp/.X11-unix 1777 root root
tmpfiles ignored the ! and ran these entries on every call, so this
emptied the directory under a running X server:
tmpfiles --remove
Only the character right after the type was looked at, and only for
a +.
Read all the modifiers after the type, in any order, and skip an
entry with ! unless the new --boot option is given. Finit gives it
at boot, together with --remove. Before this the r, R, and D entries
were never run at boot, so "r! /forcefsck" in legacy.conf left the
file in place.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>