Bug#824259: squid does not stop in a docker container wihout systemd

2018-06-12 Thread Amos Jeffries
I do not think systemd is relevant here.

Any script running the /usr/sbin/squid binary will fail if that binary
does not exist inside the container.

Amos



Bug#824259: squid does not stop in a docker container wihout systemd

2016-05-14 Thread Sascha Girrulat
Package: squid
Version: 3.5.19-1
Severity: minor

Dear Maintainer,

we are running some debian docker container without systemd. If you use
squid and try to stop squid with /etc/init.d/squid the script will fail
with:

[] Stopping Squid HTTP Proxy: squid[]  
Waiting...[FAIL...failed.
 failed!

The reason is the sript will do something like:

# start-stop-daemon --stop --pidfile /var/run/squid.pid --exec /usr/sbin/squid

but that results in:

No /usr/sbin/squid found running; none killed.

It will only work if you do

# start-stop-daemon --stop --pidfile /var/run/squid.pid.

I know it does not really matter because we use systemd only inside
debian but maybe it is useful to know for someone else.

Regards
Sascha

-- System Information:
Debian Release: 8.4
  APT prefers stable
  APT policy: (500, 'stable'), (100, 'testing'), (10, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages squid depends on:
ii  adduser  3.113+nmu3
ii  libc62.19-18+deb8u4
ii  libcap2  1:2.24-8
ii  libcomerr2   1.42.12-1.1
ii  libdb5.3 5.3.28-9
ii  libdbi-perl  1.636-1
ii  libecap3 1.0.1-3
ii  libexpat12.1.0-6+deb8u1
ii  libgcc1  1:4.9.2-10
ii  libgnutls30  3.4.11-4
ii  libgssapi-krb5-2 1.12.1+dfsg-19+deb8u2
ii  libk5crypto3 1.12.1+dfsg-19+deb8u2
ii  libkrb5-31.12.1+dfsg-19+deb8u2
ii  libldap-2.4-22.4.40+dfsg-1+deb8u2
ii  libltdl7 2.4.6-0.1
ii  libnetfilter-conntrack3  1.0.4-1
ii  libnettle6   3.2-1
ii  libpam0g 1.1.8-3.1+deb8u1+b1
ii  libsasl2-2   2.1.26.dfsg1-13+deb8u1
ii  libstdc++6   5.2.1-23
ii  libxml2  2.9.1+dfsg1-5+deb8u1
ii  logrotate3.8.7-1+b1
ii  lsb-base 4.1+Debian13+nmu1
ii  netbase  5.3
ii  squid-common 3.5.19-1

squid recommends no packages.

Versions of packages squid suggests:
pn  resolvconf   
pn  smbclient
pn  squid-cgi
pn  squid-purge  
pn  squidclient  
pn  ufw  
pn  winbindd 

-- no debconf information