diff --git a/naxalnet.service b/naxalnet.service index 4369822..72f69b5 100644 --- a/naxalnet.service +++ b/naxalnet.service @@ -27,6 +27,9 @@ ExecStartPre=/usr/bin/sleep 2 ExecStart=/usr/bin/naxalnet # Reload systemd-networkd after naxalnet exits ExecStartPost=/usr/bin/networkctl reload +# Delete all files in /run/systemd/network +ExecStop=/usr/bin/find /run/systemd/network -type f -delete +ExecStopPost=/usr/bin/networkctl reload # Delete the interfaces created ExecStopPost=/usr/bin/networkctl delete bridge0 bat0 # Make python flush messages instead of buffering.