1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
5 BINARY
="/usr/sbin/collectd"
6 PIDFILE
="/var/run/collectd.pid"
7 DATADIR
="/var/lib/collectd"
10 [ -x "$BINARY" ] ||
exit 1;
14 kill $
(cat "$PIDFILE") 2>/dev
/null
18 [ -d "$DATADIR" ] || mkdir
-p "$DATADIR";
24 kill $
(cat "$PIDFILE") 2>/dev
/null