1 |
On Fri, Oct 31, 2014 at 7:52 PM, Rich Freeman <rich0@g.o> wrote: |
2 |
> On Fri, Oct 31, 2014 at 7:01 PM, Tom H <tomh0665@×××××.com> wrote: |
3 |
>> |
4 |
>> Do you have an example of a service that uses "After=" but doesn't |
5 |
>> need a "Requires=" or a "Wants="? I'm either being unimaginative or |
6 |
>> plain dumb, but I can't think of any. |
7 |
> |
8 |
> sshd.service |
9 |
|
10 |
Thanks. I've just looked at this one and it has "After=syslog.target |
11 |
network.target auditd.service". |
12 |
|
13 |
AIUI, "After=network.target" (and similarly "After=syslog.target") is |
14 |
equivalent to having "Wants=network.service NetworkManager.service |
15 |
<other_network_managers>" and "After=network.service |
16 |
NetworkManager.service <other_network_managers>". |
17 |
|
18 |
But "After=auditd.service" is clearly an example of an "After=" |
19 |
without a "Requires=" or a "Wants=". Thanks again. |
20 |
|
21 |
PS: You'd expressed an desire for a dependency chain file in an |
22 |
earlier email. "systemctl list-dependencies" shows you the current |
23 |
dependency resolution. It's not what you were looking for but possibly |
24 |
something of interest (it has modifiers like "--after" and |
25 |
"--before"). |