From 315a360711d9c9ba36ce82084a3e3ce0de1aa080 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Tue, 15 Apr 2025 21:19:52 +0200 Subject: dhcpv6-client: T6113: add proper startup/shutdown order for systemd units When running dhcp6c on top of a PPPoE interface, properly honor the dependency chain with systemd. On shutdown we need to stop the wide-dhcpv6-client prior to shutting down the ppp portion of the interface. --- data/templates/dhcp-client/ipv6.override.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data') diff --git a/data/templates/dhcp-client/ipv6.override.conf.j2 b/data/templates/dhcp-client/ipv6.override.conf.j2 index b0c0e0544..d270a55fc 100644 --- a/data/templates/dhcp-client/ipv6.override.conf.j2 +++ b/data/templates/dhcp-client/ipv6.override.conf.j2 @@ -4,6 +4,9 @@ [Unit] ConditionPathExists={{ dhcp6_client_dir }}/dhcp6c.%i.conf +{% if ifname.startswith('pppoe') %} +After=ppp@{{ ifname }}.service +{% endif %} [Service] ExecStart= -- cgit v1.2.3