]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Update systemd dependencies in squid.service (#264) M-staged-PR264 SQUID_3_5_27
authorAmos Jeffries <yadij@users.noreply.github.com>
Tue, 7 Aug 2018 13:00:02 +0000 (13:00 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 7 Aug 2018 14:45:19 +0000 (14:45 +0000)
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.

tools/systemd/squid.service

index badfb677bc86de3176639c9d230513f5fc17d24a..9c21b227f60f2421c37bcdd517854d7d2ef10358 100644 (file)
@@ -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