1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

add rrdcollect package

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1653 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico
2005-08-14 02:57:28 +00:00
parent 8ad8b95dcc
commit ad5a144e9f
8 changed files with 163 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/sh
BIN=rrdcollect
DEFAULT=/etc/default/$BIN
RUN_D=/var/run
RRA_D=/var/lib/rra
PID_F=$RUN_D/$BIN.pid
[ -f $DEFAULT ] && . $DEFAULT
case $1 in
start)
mkdir -p $RUN_D
mkdir -p $RRA_D
$BIN $OPTIONS
;;
stop)
[ -f $PID_F ] && kill $(cat $PID_F)
;;
*)
echo "usage: $0 (start|stop)"
exit 1
esac
exit $?