Code

rrdcached.init.d: Added journal and base directory to the default OPTS.
authorSebastian Harl <sh@tokkee.org>
Sun, 4 Oct 2009 14:06:39 +0000 (16:06 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 4 Oct 2009 14:06:39 +0000 (16:06 +0200)
debian/rrdcached.default
debian/rrdcached.init.d

index 2d61f8a7023a9e3ef062d5fa408225ce29586739..c4b7f0941e9f475bc344bed20a24e6177c9e2073 100644 (file)
@@ -6,8 +6,8 @@ DISABLE=0
 
 # options to be passed to rrdcached
 # (do not specify -p <pidfile> - this is handled by the init script)
-# default: -l unix:/var/run/rrdcached.sock -F
-OPTS="-l unix:/var/run/rrdcached.sock -F"
+# default: see /etc/init.d/rrdcached
+#OPTS=""
 
 # number of seconds to wait for rrdcached to shut down
 # (writing the data to disk may take some time;
index 7c9e5d0dbd3220591eaf7d2c775290ab911c54db..1c2238426940ee4fd775b41bd8e334aa12982517 100755 (executable)
@@ -29,7 +29,10 @@ DISABLE=0
 DESC="RRDtool data caching daemon"
 NAME=rrdcached
 DAEMON=/usr/bin/rrdcached
-OPTS="-l unix:/var/run/rrdcached.sock -F"
+
+OPTS="-l unix:/var/run/rrdcached.sock"
+OPTS="$OPTS -j /var/lib/rrdcached/journal.d/ -F"
+OPTS="$OPTS -b /var/lib/rrdcached/db/ -B"
 
 PIDFILE=/var/run/rrdcached.pid