From f6dc4d472167568f41daf22a0ba57124c3f7a0d8 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 4 Oct 2009 16:06:39 +0200 Subject: [PATCH] rrdcached.init.d: Added journal and base directory to the default OPTS. --- debian/rrdcached.default | 4 ++-- debian/rrdcached.init.d | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/rrdcached.default b/debian/rrdcached.default index 2d61f8a..c4b7f09 100644 --- a/debian/rrdcached.default +++ b/debian/rrdcached.default @@ -6,8 +6,8 @@ DISABLE=0 # options to be passed to rrdcached # (do not specify -p - 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; diff --git a/debian/rrdcached.init.d b/debian/rrdcached.init.d index 7c9e5d0..1c22384 100755 --- a/debian/rrdcached.init.d +++ b/debian/rrdcached.init.d @@ -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 -- 2.30.2