[systemd-devel] How to debug why a unit is started when?

Andrei Borzenkov arvidjaar at gmail.com
Fri Mar 16 16:04:44 UTC 2018


16.03.2018 18:49, Paul Menzel пишет:
> Dear systemd folks,
> 
> 
> I am trying to get the GDM login screen started earlier on a Dell XPS 13
> 9370 with Debian Sid/unstable system with systemd 238. Currently, after
> selecting the Linux kernel in GRUB it’s only displayed after roughly
> eight to ten seconds while Linux takes around two seconds [1].
> 
> Using systemd-bootchart I see that GDM is started quite late [1], and I
> wondering if there is an option to find out why.
> 
> GDM’s service unit [2] has the “dependencies” below.
> 
>     After=rc-local.service plymouth-start.service
> systemd-user-sessions.service
> 
> Is there a debug option, where systemd says, why a certain unit is
> started? For example, reached target X and therefore starting Y.
> 

systemctl --after (--recursive) --list-dependencies gdm.service

may be the first step. Or use systemd-analyze chart to see full picture
of what was started when.


More information about the systemd-devel mailing list