* new config file /etc/cdr-exporter.conf * Remove etc/default and init.d script file * The script now reads the configuration by itselftrunk@3605
parent
14353f95ee
commit
0c62eccd15
@ -0,0 +1,10 @@
|
||||
DBHOST=127.0.0.1
|
||||
DBUSER=exporter
|
||||
DBPASS=1exportTheCDRs!
|
||||
DBDB=accounting
|
||||
|
||||
CDRDIR=/home/cdr
|
||||
|
||||
PREFIX=sipwise
|
||||
VERSION=001
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
DBHOST="127.0.0.1"
|
||||
DBPORT="3306"
|
||||
DBUSER="exporter"
|
||||
DBPASS="1exportTheCDRs!"
|
||||
DBDB="accounting"
|
||||
|
||||
CDRDIR="/tmp/cdr"
|
||||
|
||||
PREFIX="sipwise"
|
||||
VERSION="001"
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
case $(dirname $0) in
|
||||
/*) FULLPATH=$(dirname $0);;
|
||||
*) FULLPATH=$(pwd)/$(dirname $0);;
|
||||
esac
|
||||
|
||||
DAEMON=/usr/sbin/cdr-exporter
|
||||
DEFAULTS=/etc/default/cdr-exporter
|
||||
|
||||
test -f $DAEMON || exit 0
|
||||
|
||||
# Load startup options if available
|
||||
if [ -f $DEFAULTS ]; then
|
||||
. $DEFAULTS || true
|
||||
fi
|
||||
|
||||
|
||||
$DAEMON -h $DBHOST -P $DBPORT -u $DBUSER -p $DBPASS -d $DBDB \
|
||||
-t $CDRDIR -f $PREFIX -v $VERSION
|
||||
Loading…
Reference in new issue