projects
/
15.05
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
copy trunk to buildroot-ng branch
[15.05/openwrt.git]
/
package
/
collectd
/
files
/
S80collectd
1
#!/bin/sh
2
3
BINARY="/usr/sbin/collectd"
4
PIDFILE="/var/run/collectd.pid"
5
DATADIR="/var/lib/collectd"
6
7
[ -x "$BINARY" ] || exit 1;
8
9
if [ -e "$PIDFILE" ]
10
then
11
kill $(cat "$PIDFILE") 2>/dev/null
12
sleep 1
13
fi
14
15
[ -d "$DATADIR" ] || mkdir -p "$DATADIR";
16
17
$BINARY