packages/admin/pmacct/files/nfacctd.init
cshore 8e9c7eee72 [admin] pmacct: Moved pmacct package from Network|pmacct to Administration because it's accounting information.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26105 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-12 08:50:00 +00:00

19 lines
273 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
BIN=nfacctd
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)
}