packages/admin/pmacct/files/sfacctd.init
nico 424ca0ab39 [packages] pmacct: use VARIANTs, add sfacctd
* use VARIANTs to build basic, mysql, postgresql & sqlite derivatives
 * add sfacctd (sFlow accounting daemon)
 * add config-time dependency on IPv6



git-svn-id: svn://svn.openwrt.org/openwrt/packages@28468 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-17 11:04:31 +00:00

19 lines
273 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
BIN=sfacctd
DEFAULT=/etc/default/$BIN
RUN_D=/var/run
PID_F=$RUN_D/$BIN.pid
start() {
[ -f $DEFAULT ] && . $DEFAULT
mkdir -p $RUN_D
$BIN $OPTIONS
}
stop() {
[ -f $PID_F ] && kill -INT $(cat $PID_F)
}