diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-25 05:35:20 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-25 05:35:20 -0500 |
commit | 6df81be24df30216dbe8642b067d62c01c683ba1 (patch) | |
tree | 80b86790dea644c27ca157526893d0c92fa1dca2 /user/rrdtool/rrdcached.initd | |
parent | 01a93eab1836ce9ec64288b2f68ed9681ca6cf2a (diff) | |
download | packages-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.initd | 17 |
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%/*} +} |