From d55ae0face9928dd7cb487b08fe737305bc8921f Mon Sep 17 00:00:00 2001 From: Justin Reichardt Date: Tue, 3 Aug 2021 13:56:51 -0500 Subject: [PATCH] Waits until after network online The service will wait until after the network is online before running --- src/removeadhosts.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/removeadhosts.service b/src/removeadhosts.service index fc7f7f2..b02cca0 100644 --- a/src/removeadhosts.service +++ b/src/removeadhosts.service @@ -1,5 +1,7 @@ [Unit] Description=update the hosts file to remove ads +Wants=network-online.target +After=network.target network-online.target [Service] Type=oneshot