[systemd-devel] systemctl is-enabled...
arvidjaar at mail.ru
Tue Mar 8 08:16:13 PST 2011
On Mon, Mar 7, 2011 at 4:02 AM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Sat, 05.03.11 14:27, Andrey Borzenkov (arvidjaar at mail.ru) wrote:
>> pts/1}% systemctl --no-pager show systemd-tmpfiles-clean.service
>> 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?
Add in RequisiteBy and BoundBy and it makes it perfect :)
> (It will ignore stuff like units started by triggers.)
TriggeredBy? :) Although I suspect it would require full unit search
in this case.
More information about the systemd-devel