diff options
author | Christian Breunig <christian@breunig.cc> | 2025-04-15 21:19:52 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2025-04-15 21:20:22 +0200 |
commit | 315a360711d9c9ba36ce82084a3e3ce0de1aa080 (patch) | |
tree | a493179ca1b3312302bdb93ca1f30397f8a8c861 /data | |
parent | 9e47c2153be7cc0e5ed21ca8a976336d4bf872d8 (diff) | |
download | vyos-1x-315a360711d9c9ba36ce82084a3e3ce0de1aa080.tar.gz vyos-1x-315a360711d9c9ba36ce82084a3e3ce0de1aa080.zip |
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.
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/dhcp-client/ipv6.override.conf.j2 | 3 |
1 files changed, 3 insertions, 0 deletions
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= |