diff options
Diffstat (limited to 'main/rrdtool/rrdcached.initd')
-rw-r--r-- | main/rrdtool/rrdcached.initd | 17 |
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%/*} +} |