squid: must be started in foreground mode for systemd

pull/126/head
Jérémy Lecour 1 year ago committed by Jérémy Lecour
parent b5bcd666c6
commit 5905751a82
  1. 1
      CHANGELOG.md
  2. 4
      squid/files/systemd-override.conf
  3. 4
      squid/tasks/systemd.yml
  4. 8
      squid/templates/systemd-override.conf.j2

@ -37,6 +37,7 @@ The **patch** part changes incrementally at each release.
* ntpd: Add leapfile configuration setting to ntpd on debian 10+
* packweb-apache: install phpMyAdmin from buster-backports
* spamassassin: change dependency on evomaintenance
* squid: must be started in foreground mode for systemd
* squid: remove obsolete variable on Squid 4
### Fixed

@ -1,4 +0,0 @@
# systemd override for Squid
[Service]
ExecStart=
ExecStart=/usr/sbin/squid -sYC -f /etc/squid/evolinux-defaults.conf

@ -16,8 +16,8 @@
mode: "0755"
- name: "Squid systemd unit service is present"
copy:
src: systemd-override.conf
template:
src: systemd-override.conf.j2
dest: /etc/systemd/system/squid.service.d/override.conf
force: yes
register: _squid_systemd_override

@ -0,0 +1,8 @@
# systemd override for Squid
[Service]
ExecStart=
{% if ansible_distribution_major_version is version('11', '>=') %}
ExecStart=/usr/sbin/squid --foreground -sYC -f /etc/squid/evolinux-defaults.conf
{% else %}
ExecStart=/usr/sbin/squid -sYC -f /etc/squid/evolinux-defaults.conf
{% endif %}
Loading…
Cancel
Save