summaryrefslogblamecommitdiff
path: root/user/rrdtool/rrdcached.initd
blob: 6459d1ff967bbcada434e54ebcbaee547b6b334e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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%/*}
}