Package: squid3
Version: 3.1.15-1
Severity: important
Tags: patch

I noticed that, while setting up a pacemaker/corosync cluster and wanting
to use init scripts for running some of the services, /etc/init.d/squid3
was lacking the status argument required by the cluster.

Suggested patch attached.


-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (500, 'stable'), (200, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE= (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages squid3 depends on:
ii  adduser            3.112+nmu2            add and remove users and groups
ii  libc6              2.11.2-10             Embedded GNU C Library: Shared lib
ii  libcap2            1:2.19-3              support for getting/setting POSIX.
ii  libcomerr2         1.41.12-4stable1      common error description library
ii  libdb5.1           5.1.25-11             Berkeley v5.1 Database Libraries [
ii  libexpat1          2.0.1-7               XML parsing C library - runtime li
ii  libgcc1            1:4.4.5-8             GCC support library
ii  libgssapi-krb5-2   1.8.3+dfsg-4squeeze2  MIT Kerberos runtime libraries - k
ii  libk5crypto3       1.8.3+dfsg-4squeeze2  MIT Kerberos runtime libraries - C
ii  libkrb5-3          1.8.3+dfsg-4squeeze2  MIT Kerberos runtime libraries
ii  libldap-2.4-2      2.4.23-7.2            OpenLDAP libraries
ii  libltdl7           2.4-4                 A system independent dlopen wrappe
ii  libpam0g           1.1.1-6.1             Pluggable Authentication Modules l
ii  libsasl2-2         2.1.23.dfsg1-7        Cyrus SASL - authentication abstra
ii  libstdc++6         4.4.5-8               The GNU Standard C++ Library v3
ii  libxml2            2.7.8.dfsg-2+squeeze1 GNOME XML library
ii  logrotate          3.7.8-6               Log rotation utility
ii  lsb-base           3.2-23.2squeeze1      Linux Standard Base 3.2 init scrip
ii  netbase            4.45                  Basic TCP/IP networking system
ii  squid3-common      3.1.15-1              Full featured Web Proxy cache (HTT

squid3 recommends no packages.

Versions of packages squid3 suggests:
pn  resolvconf                    <none>     (no description available)
pn  smbclient                     <none>     (no description available)
ii  squid-cgi                     3.1.15-1   Full featured Web Proxy cache (HTT
ii  squidclient                   3.1.15-1   Full featured Web Proxy cache (HTT
pn  ufw                           <none>     (no description available)

-- Configuration Files:
/etc/init.d/squid3 changed [not included]
/etc/logrotate.d/squid3 changed [not included]
/etc/squid3/squid.conf changed [not included]

-- no debconf information
--- /etc/init.d/squid3  2011-07-09 19:26:29.000000000 +0200
+++ /tmp/squid3 2011-10-18 15:43:47.000000000 +0200
@@ -137,8 +137,11 @@
                log_end_msg $?
        fi
        ;;
+    status)
+        status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit 3
+        ;;
     *)
-       echo "Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart}"
+       echo "Usage: /etc/init.d/$NAME 
{start|stop|reload|force-reload|restart|status}"
        exit 3
        ;;
 esac

Reply via email to