summaryrefslogtreecommitdiff
path: root/user/rrdtool/rrdcached.initd
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-25 05:35:20 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-25 05:35:20 -0500
commit6df81be24df30216dbe8642b067d62c01c683ba1 (patch)
tree80b86790dea644c27ca157526893d0c92fa1dca2 /user/rrdtool/rrdcached.initd
parent01a93eab1836ce9ec64288b2f68ed9681ca6cf2a (diff)
downloadpackages-6df81be24df30216dbe8642b067d62c01c683ba1.tar.gz
packages-6df81be24df30216dbe8642b067d62c01c683ba1.tar.bz2
packages-6df81be24df30216dbe8642b067d62c01c683ba1.tar.xz
packages-6df81be24df30216dbe8642b067d62c01c683ba1.zip
user/rrdtool: pull in, bump to 1.7.0, modernise
Diffstat (limited to 'user/rrdtool/rrdcached.initd')
-rw-r--r--user/rrdtool/rrdcached.initd17
1 files changed, 17 insertions, 0 deletions
diff --git a/user/rrdtool/rrdcached.initd b/user/rrdtool/rrdcached.initd
new file mode 100644
index 000000000..6459d1ff9
--- /dev/null
+++ b/user/rrdtool/rrdcached.initd
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+
+description="RRDtool data caching daemon"
+pidfile=${pidfile:-/run/rrdcached/rrdcached.pid}
+socket=${socket:-unix:/run/rrdcached/rrdcached.sock}
+command="/usr/sbin/rrdcached"
+command_args="-l $socket -j /var/lib/rrdcached/journal/ -F -b /var/lib/rrdcached/db/ -B -p $pidfile"
+start_stop_daemon_args="--quiet"
+
+depend() {
+ need localmount net
+ use logger
+}
+
+start_pre() {
+ checkpath --directory ${pidfile%/*}
+}