[systemd-devel] systemctl is-enabled...

Lennart Poettering lennart at poettering.net
Sun Mar 6 17:02:31 PST 2011


On Sat, 05.03.11 14:27, Andrey Borzenkov (arvidjaar at mail.ru) wrote:

> pts/1}% systemctl --no-pager show systemd-tmpfiles-clean.service
> Id=systemd-tmpfiles-clean.service
> Names=systemd-tmpfiles-clean.service
> Wants=local-fs.target
> Before=sysinit.target shutdown.target
> After=systemd-tmpfiles-clean.timer systemd-readahead-collect.service
> systemd-readahead-replay.service local-fs.target
> Description=Cleanup of Temporary Directories
> 
> So I know Before/After dependencies, but there is no way to find out
> (without exhaustive search across all units) what may cause this unit
> to be started.
>
> systemd already merges After/Before and displays final result; may be
> it should do the same for WantedBy as well?

Hmm? RequiredBy= and WantedBy= should be sufficient? No?

(It will ignore stuff like units started by triggers.)

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list