packages/pmacct: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28890 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
365221c40b
commit
1f2a63775b
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pmacct
|
||||
PKG_VERSION:=0.12.5
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.pmacct.net/
|
||||
|
@ -1,18 +1,19 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
START=50
|
||||
|
||||
BIN=nfacctd
|
||||
DEFAULT=/etc/default/$BIN
|
||||
RUN_D=/var/run
|
||||
PID_F=$RUN_D/$BIN.pid
|
||||
SERVICE_USE_PID=1
|
||||
|
||||
PROG="nfacctd"
|
||||
DEFAULT="/etc/default/$PROG"
|
||||
COMMAND="/usr/sbin/$PROG"
|
||||
|
||||
start() {
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
mkdir -p $RUN_D
|
||||
$BIN $OPTIONS
|
||||
service_start $COMMAND $OPTIONS
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -f $PID_F ] && kill -INT $(cat $PID_F)
|
||||
service_stop $COMMAND
|
||||
}
|
||||
|
@ -1,18 +1,19 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
START=50
|
||||
|
||||
BIN=pmacctd
|
||||
DEFAULT=/etc/default/$BIN
|
||||
RUN_D=/var/run
|
||||
PID_F=$RUN_D/$BIN.pid
|
||||
SERVICE_USE_PID=1
|
||||
|
||||
PROG="pmacctd"
|
||||
DEFAULT="/etc/default/$PROG"
|
||||
COMMAND="/usr/sbin/$PROG"
|
||||
|
||||
start() {
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
mkdir -p $RUN_D
|
||||
$BIN $OPTIONS
|
||||
service_start $COMMAND $OPTIONS
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -f $PID_F ] && kill -INT $(cat $PID_F)
|
||||
service_stop $COMMAND
|
||||
}
|
||||
|
@ -1,18 +1,19 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
START=50
|
||||
|
||||
BIN=sfacctd
|
||||
DEFAULT=/etc/default/$BIN
|
||||
RUN_D=/var/run
|
||||
PID_F=$RUN_D/$BIN.pid
|
||||
SERVICE_USE_PID=1
|
||||
|
||||
PROG="sfacctd"
|
||||
DEFAULT="/etc/default/$PROG"
|
||||
COMMAND="/usr/sbin/$PROG"
|
||||
|
||||
start() {
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
mkdir -p $RUN_D
|
||||
$BIN $OPTIONS
|
||||
service_start $COMMAND $OPTIONS
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -f $PID_F ] && kill -INT $(cat $PID_F)
|
||||
service_stop $COMMAND
|
||||
}
|
||||
|
@ -1,18 +1,19 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
START=50
|
||||
|
||||
BIN=uacctd
|
||||
DEFAULT=/etc/default/$BIN
|
||||
RUN_D=/var/run
|
||||
PID_F=$RUN_D/$BIN.pid
|
||||
SERVICE_USE_PID=1
|
||||
|
||||
PROG="uacctd"
|
||||
DEFAULT="/etc/default/$PROG"
|
||||
COMMAND="/usr/sbin/$PROG"
|
||||
|
||||
start() {
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
mkdir -p $RUN_D
|
||||
$BIN $OPTIONS
|
||||
service_start $COMMAND $OPTIONS
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -f $PID_F ] && kill -INT $(cat $PID_F)
|
||||
service_stop $COMMAND
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user