aboutsummaryrefslogtreecommitdiffstats
path: root/main/rrdtool/rrdcached.initd
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2016-02-02 18:10:00 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-02-04 10:49:49 +0000
commitfb4292589ac71706a0e79248041e6fd830c9d920 (patch)
treeae402c1618021cb40886ad84f5e9a87c2f8cf1a4 /main/rrdtool/rrdcached.initd
parentab78d1c858b624e29bcb36a0d7113e55be6e1c43 (diff)
downloadaports-fb4292589ac71706a0e79248041e6fd830c9d920.tar.gz
aports-fb4292589ac71706a0e79248041e6fd830c9d920.tar.bz2
aports-fb4292589ac71706a0e79248041e6fd830c9d920.tar.xz
main/rrdtool: split to subpackages
Diffstat (limited to 'main/rrdtool/rrdcached.initd')
-rw-r--r--main/rrdtool/rrdcached.initd17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/rrdtool/rrdcached.initd b/main/rrdtool/rrdcached.initd
new file mode 100644
index 0000000000..6459d1ff96
--- /dev/null
+++ b/main/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%/*}
+}