Package: rrdcached
Version: 1.4.7-2
Severity: normal
Tags: patch

Dear Maintainer,

/etc/init.d/rrdcached sets OPTS explicitly without checking if they have
already been specified in /etc/default/rrdcached. There is a commented
line in /etc/default/rrdcache stating that OPTS can be specified, so this
indicates that this is not the intended behaviour. This seems to apply to
at least >= Wheezy.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.9-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rrdcached depends on:
ii  libc6          2.17-5
ii  libcairo2      1.12.14-4
ii  libdbi1        0.8.4-6
ii  libglib2.0-0   2.36.1-2build1
ii  libpango1.0-0  1.32.5-5+b1
ii  libpng12-0     1.2.49-4
ii  librrd4        1.4.7-2
ii  libxml2        2.8.0+dfsg1-7+nmu1

rrdcached recommends no packages.

rrdcached suggests no packages.

-- no debconf information
--- rrdcached	2013-07-08 16:19:01.000000000 +0300
+++ rrdcached	2013-07-08 16:19:03.000000000 +0300
@@ -30,9 +30,11 @@
 NAME=rrdcached
 DAEMON=/usr/bin/rrdcached
 
-OPTS="-l unix:/var/run/rrdcached.sock"
-OPTS="$OPTS -j /var/lib/rrdcached/journal/ -F"
-OPTS="$OPTS -b /var/lib/rrdcached/db/ -B"
+if [ -z "$OPTS" ]; then
+	OPTS="-l unix:/var/run/rrdcached.sock"
+	OPTS="$OPTS -j /var/lib/rrdcached/journal/ -F"
+	OPTS="$OPTS -b /var/lib/rrdcached/db/ -B"
+fi
 
 PIDFILE=/var/run/rrdcached.pid
 

Reply via email to