Start the wireguard-ipv6-converter again whenever its bound service starts via a drop-in and always restart it on deploy

This commit is contained in:
2026-10-09 14:37:24 +00:00
parent 6390e6288b
commit 381f3ab7c9
2 changed files with 28 additions and 1 deletions
@@ -0,0 +1,7 @@
# BindsTo= in the converter unit only propagates stop, so a restart of
# {{ wireguard_ipv6_converter.service.bindTo }} leaves the converter dead and the re-created
# interface without its IPv6 addresses. Start it again whenever
# {{ wireguard_ipv6_converter.service.bindTo }} starts. --no-block because the converter orders
# itself After={{ wireguard_ipv6_converter.service.bindTo }}.
[Service]
ExecStartPost=/bin/systemctl --no-block start wg-ipv6-converter_{{ wireguard_ipv6_converter.setup.interface }}.service