Control: severity -1 normal Control: tags -1 unreproducible Control: tags -1 moreinfo
Hi! I have just tried to reproduce this issue by doing a fresh install of squid on Debian unstable. I was not able to reproduce the problem although systemd warns about the missing PID file as well: > squid.service: PID file /var/run/squid.pid not readable (yet?) after start: > No such file o I can start and stop squid without any problems, however. > Things are not quite that obvious unfortunately. systemd does not have > all the facts, yet assumes that it does and thus produces incorrect info > about the problem. Or rather it is telling you about a problem *it* has > - which is merely a side effect of what is failing for Squid. systemd is running squid in LSB compatibility mode by interpreting the LSB headers provided in the init scripts of the squid package. This is not the optimal way to run a service under systemd although it works and it's supported. However, some init scripts can contain hacky or racy code and this could potentially lead to such issues in systemd. But again, I'm not able to reproduce the problem which is why I am downgrading the severity of this bug report and tagging it accordingly. In the long term, the squid package should be updated to provide native systemd support in the form of service files. Since we have agreed in Debian to support systemd as the default and preferred init system. all packages are required to function properly with systemd which is why native systemd service files for squid are desirable. Thanks, Adrian ======================================================================================================== root@ikarus:~# apt install squid Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libdbi-perl libecap3 squid-common squid-langpack Suggested packages: libmldbm-perl libnet-daemon-perl libsql-statement-perl squidclient squid-cgi squid-purge resolvconf smbclient ufw winbindd The following NEW packages will be installed: libdbi-perl libecap3 squid squid-common squid-langpack 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 3,524 kB of archives. After this operation, 12.6 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://ftp.de.debian.org/debian unstable/main amd64 libdbi-perl amd64 1.636-1+b1 [766 kB] Get:2 http://ftp.de.debian.org/debian unstable/main amd64 libecap3 amd64 1.0.1-3.2 [16.5 kB] Get:3 http://ftp.de.debian.org/debian unstable/main amd64 squid-langpack all 20150704-1 [146 kB] Get:4 http://ftp.de.debian.org/debian unstable/main amd64 squid-common all 3.5.23-1 [284 kB] Get:5 http://ftp.de.debian.org/debian unstable/main amd64 squid amd64 3.5.23-1 [2,311 kB] Fetched 3,524 kB in 0s (4,378 kB/s) Selecting previously unselected package libdbi-perl. (Reading database ... 413006 files and directories currently installed.) Preparing to unpack .../libdbi-perl_1.636-1+b1_amd64.deb ... Unpacking libdbi-perl (1.636-1+b1) ... Selecting previously unselected package libecap3:amd64. Preparing to unpack .../libecap3_1.0.1-3.2_amd64.deb ... Unpacking libecap3:amd64 (1.0.1-3.2) ... Selecting previously unselected package squid-langpack. Preparing to unpack .../squid-langpack_20150704-1_all.deb ... Unpacking squid-langpack (20150704-1) ... Selecting previously unselected package squid-common. Preparing to unpack .../squid-common_3.5.23-1_all.deb ... Unpacking squid-common (3.5.23-1) ... Selecting previously unselected package squid. Preparing to unpack .../squid_3.5.23-1_amd64.deb ... Unpacking squid (3.5.23-1) ... Setting up libecap3:amd64 (1.0.1-3.2) ... Processing triggers for libc-bin (2.24-9) ... Processing triggers for systemd (232-18) ... Setting up squid-langpack (20150704-1) ... Setting up squid-common (3.5.23-1) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up libdbi-perl (1.636-1+b1) ... Setting up squid (3.5.23-1) ... Setcap worked! /usr/lib/squid/pinger is not suid! Processing triggers for systemd (232-18) ... root@ikarus:~# systemctl status squid.service ● squid.service - LSB: Squid HTTP Proxy version 3.x Loaded: loaded (/etc/init.d/squid; generated; vendor preset: enabled) Active: active (running) since Sat 2017-02-25 15:24:50 CET; 9s ago Docs: man:systemd-sysv-generator(8) Main PID: 3089 (squid) CGroup: /system.slice/squid.service ├─3087 /usr/sbin/squid -YC -f /etc/squid/squid.conf ├─3089 (squid-1) -YC -f /etc/squid/squid.conf ├─3090 (logfile-daemon) /var/log/squid/access.log └─3091 (pinger) Feb 25 15:24:50 ikarus systemd[1]: Starting LSB: Squid HTTP Proxy version 3.x... Feb 25 15:24:50 ikarus squid[3087]: Squid Parent: will start 1 kids Feb 25 15:24:50 ikarus squid[3047]: Starting Squid HTTP Proxy: squid. Feb 25 15:24:50 ikarus squid[3087]: Squid Parent: (squid-1) process 3089 started Feb 25 15:24:50 ikarus systemd[1]: squid.service: PID file /var/run/squid.pid not readable (yet?) after start: No such file o Feb 25 15:24:50 ikarus systemd[1]: squid.service: Supervising process 3089 which is not our child. We'll most likely not noti Feb 25 15:24:50 ikarus systemd[1]: Started LSB: Squid HTTP Proxy version 3.x. Feb 25 15:24:50 ikarus systemd[1]: squid.service: Supervising process 3089 which is not our child. We'll most likely not noti root@ikarus:~# -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913