From: Amos Jeffries Date: Tue, 7 Aug 2018 13:00:02 +0000 (+0000) Subject: Update systemd dependencies in squid.service (#264) X-Git-Tag: M-staged-PR264 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c321737de30e69b0d31944b8962eccd4e88b7267;p=thirdparty%2Fsquid.git Update systemd dependencies in squid.service (#264) The network.target is not sufficient to guarantee network interfaces and IPs are assigned and available. Particularly when systemd is not in charge of the IP assignment itself. Use network-online.target as well, which should ensure network is properly configured and online before starting Squid. --- diff --git a/tools/systemd/squid.service b/tools/systemd/squid.service index badfb677bc..9c21b227f6 100644 --- a/tools/systemd/squid.service +++ b/tools/systemd/squid.service @@ -8,7 +8,7 @@ [Unit] Description=Squid Web Proxy Server Documentation=man:squid(8) -After=network.target nss-lookup.target +After=network.target network-online.target nss-lookup.target [Service] Type=forking