Search squid archive

Re: Can't start Squid with workers via systemd on CentOS 7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I can test it locally but it will take me couple days to get there.

----
Eliezer Croitoru
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer@xxxxxxxxxxxx


-----Original Message-----
From: squid-users [mailto:squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of ??
Sent: Thursday, March 9, 2017 4:00 PM
To: squid-users@xxxxxxxxxxxxxxxxxxxxx
Subject:  Can't start Squid with workers via systemd on CentOS 7

I installed Squid 4.0.18 on CentOS 7 X86_84 according to http://wiki.squid-cache.org/KnowledgeBase/CentOS#Squid_Beta_release

I add a line "workers 2" to `/etc/squid/squid.conf` (just a copy of
`squid.conf.default`)
and start squid via `systemctl start squid`, It seems squid is running, except that it is not listening to the port 3128 (confirmed by netstat).

However, if I start squid in command line (`squid -sYC`), squid does listen to port 3128.

There are some differences in `/var/log/squid/cache.log` for these two
cases:

* start via `systemctl start squid`:

   2017/03/09 21:12:54 kid3| commBind Cannot bind socket FD 12 to [::]: 
(98) Address already in use
   2017/03/09 21:12:54 kid2| commBind Cannot bind socket FD 21 to [::]: 
(98) Address already in use
   2017/03/09 21:12:54 kid1| commBind Cannot bind socket FD 21 to [::]: 
(98) Address already in use

* start via `squid -sYC`:

   2017/03/09 21:19:28 kid1| Accepting HTTP Socket connections at
local=[::]:3128 remote=[::] FD 15 flags=1
   2017/03/09 21:19:28 kid2| Accepting HTTP Socket connections at
local=[::]:3128 remote=[::] FD 15 flags=1

The full logs are attached. Please help.

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux