Skip to content

Commit

Permalink
Update systemd dependencies in squid.service (squid-cache#264)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yadij authored and squid-anubis committed Aug 7, 2018
1 parent 2c7246f commit c321737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/systemd/squid.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c321737

Please sign in to comment.