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+
|
* ntpd: Add leapfile configuration setting to ntpd on debian 10+
|
||||||
* packweb-apache: install phpMyAdmin from buster-backports
|
* packweb-apache: install phpMyAdmin from buster-backports
|
||||||
* spamassassin: change dependency on evomaintenance
|
* spamassassin: change dependency on evomaintenance
|
||||||
|
* squid: must be started in foreground mode for systemd
|
||||||
* squid: remove obsolete variable on Squid 4
|
* squid: remove obsolete variable on Squid 4
|
||||||
|
|
||||||
### Fixed
|
### 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"
|
mode: "0755"
|
||||||
|
|
||||||
- name: "Squid systemd unit service is present"
|
- name: "Squid systemd unit service is present"
|
||||||
copy:
|
template:
|
||||||
src: systemd-override.conf
|
src: systemd-override.conf.j2
|
||||||
dest: /etc/systemd/system/squid.service.d/override.conf
|
dest: /etc/systemd/system/squid.service.d/override.conf
|
||||||
force: yes
|
force: yes
|
||||||
register: _squid_systemd_override
|
register: _squid_systemd_override
|
||||||
|
|
8
squid/templates/systemd-override.conf.j2
Normal file
8
squid/templates/systemd-override.conf.j2
Normal file
|
@ -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 a new issue