squid: must be started in foreground mode for systemd
This commit is contained in:
parent
b5bcd666c6
commit
5905751a82
|
@ -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…
Reference in New Issue