-
Frédéric Dalleau authored
The current `shutdown` command implemented in `systemctl` asks `systemd-logind` to shutdown. `systemd-logind` is prevented by apparmor to shutdown: The AppArmor profile does not allowing creation of `nologin`, `utmp` and `scheduled` files. When `systemd-logind` fails, `systemctl` writes a warning message in the console, and uses a fallback code to shutdown. This patch allows `systemd-logind` to create those files for a clean shutdown. Apertis: https://phabricator.apertis.org/T4570 Signed-off-by: Frédéric Dalleau <frederic.dalleau@collabora.com>
7f6ceded