From 9651f57e342ab3b1b2f7bb4d1e53df16837ca009 Mon Sep 17 00:00:00 2001 From: Juan Orti Alcaine Date: Tue, 8 Dec 2020 20:39:32 +0100 Subject: [PATCH] Run service after network-online.target If sqm starts before NetworkManager has finished configuring the network interfaces, it can cause NetworkManager to fail with the following error: platform-linux: do-delete-tfilter[9: -65536]: failure 22 (Invalid argument - Parent Qdisc doesn't exists) After that, the interface is torn down, causing sqm to stop. To avoid that problem, wait until the network interfaces have been fully configured ordering the systemd unit after network-online.target. Signed-off-by: Juan Orti Alcaine --- platform/linux/sqm@.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux/sqm@.service b/platform/linux/sqm@.service index c97e663a..82e16c60 100644 --- a/platform/linux/sqm@.service +++ b/platform/linux/sqm@.service @@ -1,7 +1,7 @@ [Unit] Description=SQM scripts for iface %i -Wants=network.target -Before=network.target +Wants=network-online.target +After=network-online.target BindsTo=sys-subsystem-net-devices-%i.device After=sys-subsystem-net-devices-%i.device