# Started (never enabled) by pxe-nic-carrier, the networkd-dispatcher # hook, when the imaging NIC gets carrier back. Re-checks the imaging NIC # before dnsmasq serves again: if dnsmasq was running (or the hook stopped # it on carrier loss), "systemctl restart dnsmasq" so its ExecStartPre # guard decides; otherwise it only refreshes /run/pxe-nic-status.json. # The hook restarts this unit on every carrier gain and stops it on a # carrier loss, so the newest event wins. [Unit] Description=PXE NIC carrier change: re-check the imaging NIC before dnsmasq serves After=network.target [Service] Type=oneshot ExecStart=/usr/local/sbin/pxe-nic-carrier --gain TimeoutStartSec=120