summaryrefslogtreecommitdiff
path: root/user/rrdtool/rrdcached.initd
diff options
context:
space:
mode:
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%/*}
+}