Package: memcached Version: 1.4.5-1 Severity: important Tags: patch When $ENABLE_MEMCACHED is set to no in '/etc/default/memcached', /etc/init.d/memcached restart starts the memcached service. The restart case doesen't check this variable before trying to start.
-- System Information: Debian Release: 6.0.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages memcached depends on: ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libevent-1.4-2 1.4.13-stable-1 An asynchronous event notification ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip ii perl 5.10.1-17squeeze2 Larry Wall's Practical Extraction memcached recommends no packages. Versions of packages memcached suggests: pn libcache-memcached-perl <none> (no description available) pn libmemcached <none> (no description available) -- no debconf information
--- memcached 2011-08-03 15:04:00.000000000 +0200 +++ memcached-patched 2011-08-03 15:05:08.000000000 +0200 @@ -57,9 +57,14 @@ start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE rm -f $PIDFILE sleep 1 - start-stop-daemon --start --quiet --exec $DAEMONBOOTSTRAP - echo "$NAME." - ;; + if [ $ENABLE_MEMCACHED = yes ]; then + start-stop-daemon --start --quiet --exec $DAEMONBOOTSTRAP + echo "$NAME." + else + echo "$NAME disabled in /etc/default/memcached." + fi + ;; + status) status_of_proc $DAEMON $NAME ;;