On Fri, Oct 31, 2014 at 7:52 PM, Rich Freeman <ri...@gentoo.org> wrote:
> On Fri, Oct 31, 2014 at 7:01 PM, Tom H <tomh0...@gmail.com> wrote:
>>
>> Do you have an example of a service that uses "After=" but doesn't
>> need a "Requires=" or a "Wants="? I'm either being unimaginative or
>> plain dumb, but I can't think of any.
>
> sshd.service

Thanks. I've just looked at this one and it has "After=syslog.target
network.target auditd.service".

AIUI, "After=network.target" (and similarly "After=syslog.target") is
equivalent to having "Wants=network.service NetworkManager.service
<other_network_managers>" and "After=network.service
NetworkManager.service <other_network_managers>".

But "After=auditd.service" is clearly an example of an "After="
without a "Requires=" or a "Wants=". Thanks again.

PS: You'd expressed an desire for a dependency chain file in an
earlier email. "systemctl list-dependencies" shows you the current
dependency resolution. It's not what you were looking for but possibly
something of interest (it has modifiers like "--after" and
"--before").

Reply via email to