Squid seems to not load /etc/squid/evolinux-custom.conf #63

Closed
opened 2019-07-02 17:27:25 +02:00 by benpro · 3 comments
Contributor

Squid seems to not load /etc/squid/evolinux-custom.conf and keeps listening at port 3128 in place of 8888.

Squid seems to not load `/etc/squid/evolinux-custom.conf` and keeps listening at port 3128 in place of 8888.
benpro added this to the Debian 11 (Buster) milestone 2019-07-02 17:27:25 +02:00
benpro added the
bug
label 2019-07-02 17:27:25 +02:00
Author
Contributor

systemd unit file doesn't read /etc/default/squid

systemd unit file doesn't read `/etc/default/squid`
Author
Contributor

Even with:

# /etc/systemd/system/squid.service.d/override.conf
[Service]
ExecStartPre=/usr/sbin/squid -f /etc/squid/evolinux-defaults.conf --foreground -z

It doesn't works.

Even with: ``` # /etc/systemd/system/squid.service.d/override.conf [Service] ExecStartPre=/usr/sbin/squid -f /etc/squid/evolinux-defaults.conf --foreground -z ``` It doesn't works.
Author
Contributor

Well the solution is to create another unit file:

# /etc/systemd/system/squid.service
## Copyright (C) 1996-2019 The Squid Software Foundation and contributors
##
## Squid software is distributed under GPLv2+ license and includes
## contributions from numerous individuals and organizations.
## Please see the COPYING and CONTRIBUTORS files for details.
##

[Unit]
Description=Squid Web Proxy Server
Documentation=man:squid(8)
After=network.target network-online.target nss-lookup.target

[Service]
Type=forking
PIDFile=/var/run/squid.pid
ExecStartPre=/usr/sbin/squid --foreground -z
ExecStart=/usr/sbin/squid -sYC -f /etc/squid/evolinux-defaults.conf
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed

[Install]
WantedBy=multi-user.target
Well the solution is to create another unit file: ``` # /etc/systemd/system/squid.service ## Copyright (C) 1996-2019 The Squid Software Foundation and contributors ## ## Squid software is distributed under GPLv2+ license and includes ## contributions from numerous individuals and organizations. ## Please see the COPYING and CONTRIBUTORS files for details. ## [Unit] Description=Squid Web Proxy Server Documentation=man:squid(8) After=network.target network-online.target nss-lookup.target [Service] Type=forking PIDFile=/var/run/squid.pid ExecStartPre=/usr/sbin/squid --foreground -z ExecStart=/usr/sbin/squid -sYC -f /etc/squid/evolinux-defaults.conf ExecReload=/bin/kill -HUP $MAINPID KillMode=mixed [Install] WantedBy=multi-user.target ```
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: evolix/ansible-roles#63
No description provided.