On my Raspbian Buster Lite (slightly customized) at boot I notice the Login Service
fails to start several times:
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
[ OK ] Stopped Login Service.
Starting Login Service...
[ OK ] Started LSB: Switch to ondemand cpu governor (unless shift key is pressed).
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
[ OK ] Stopped Login Service.
Starting Login Service...
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
[ OK ] Stopped Login Service.
Starting Login Service...
[ OK ] Started Initial setup.
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
[ OK ] Stopped Login Service.
Starting Login Service...
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
[ OK ] Stopped Login Service.
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
systemctl status systemd-logind.service
outputs:
● systemd-logind.service - Login Service
Loaded: loaded (/lib/systemd/system/systemd-logind.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2019-08-18 21:22:15 CEST; 3min 8s ago
Docs: man:systemd-logind.service(8)
man:logind.conf(5)
https://www.freedesktop.org/wiki/Software/systemd/logind
https://www.freedesktop.org/wiki/Software/systemd/multiseat
Process: 409 ExecStart=/lib/systemd/systemd-logind (code=exited, status=1/FAILURE)
Main PID: 409 (code=exited, status=1/FAILURE)
Aug 18 21:22:15 pi systemd[1]: systemd-logind.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Aug 18 21:22:15 pi systemd[1]: systemd-logind.service: Scheduled restart job, restart counter is at 5.
Aug 18 21:22:15 pi systemd[1]: Stopped Login Service.
Aug 18 21:22:15 pi systemd[1]: systemd-logind.service: Start request repeated too quickly.
Aug 18 21:22:15 pi systemd[1]: systemd-logind.service: Failed with result 'exit-code'.
Aug 18 21:22:15 pi systemd[1]: Failed to start Login Service.
but I don't see anything about the cause of the failure. Where should I look to understand why it fails?
CTRL+ALT+F2
to get a console login. Login as pi (password=raspberry unless you've changed it). When the bash prompt appears runcd /home/pi; sudo chown -R pi.pi *; sudo reboot;
.sudo chown -R pi:pi *
. Anyway, this is one of the last commands I run in my script to customize Raspian Lite. So my home directory is already owned bypi:pi