Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 1:29 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Unable to start a2b-callback-daemon
PostPosted: Sat Jul 09, 2011 2:21 am 
Offline

Joined: Thu Nov 12, 2009 9:36 pm
Posts: 33
Hi Guys,
I think I have managed to install the callback-daemon successfully on my test box running Opensuse 10.3 and A2billing 1.4.1 but I can not start the daemon. I get below message when I try to start it:

service a2b-callback-daemon start
k-daemon start
Usage: /etc/init.d/a2b-callback-daemon {start|start_log|stop|status|restart}

Also, ps -ef | grep call does not show any callback daenin started.

Below is what I have in /etc/init.d/a2b-callback-daemon.

#!/bin/sh
#
# a2b-callback-daemon : Start/Stop the a2b callback daemon
#
# chkconfig: 2345 40 60
# description: a2b-callback-daemon is a daemon who check if there is calls with state 'PENDING' in database to place
it
# processname: a2b-callback-daemon
# pidfile: /var/run/a2b-callback-daemon.pid

# Source function library.
#INITD=/etc/init.d
#. /etc/rc.status
INITD=/lib/lsb/ << Changed it to this after reading a thred in this forum where a user on Suse recommended to make this change.
. $INITD/init-functions
#. /etc/rc.status

NAME='a2b-callback-daemon'
#DAEMON='/usr/bin/a2b_callback_daemon'
DAEMON='/usr/local/bin/a2b_callback_daemon'
LOG='/var/log/a2billing/a2b-callback-daemon.log'
# Clean

# See how we were called.
case "$1" in
start_daemon)
rc_status $DAEMON
r=$?;

if [ $r -eq 0 ]; then
echo "Already running $NAME: "
exit $r;
fi

daemon $DAEMON
echo "Starting $NAME: "
touch /var/lock/subsys/a2b-callback-daemon
;;
stop)
killproc $DAEMON
echo "Stopping $NAME: "
rm -f /var/lock/subsys/a2b-callback-daemon
;;
rc_status)
status $DAEMON
r=$?;
if [ $r -ne 0 ]; then
exit $r;
fi
;;
start_log)
$0 status
$0 start
tail -f $LOG
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|start_log|stop|status|restart}"
exit 1
esac

exit 0


Could you please advise what I am doing wrong?

Thank you in advance.

Regard,
VoipBeginner


Top
 Profile  
 
 Post subject: Re: Unable to start a2b-callback-daemon
PostPosted: Thu Jul 14, 2011 10:19 am 
Offline

Joined: Thu Nov 12, 2009 9:36 pm
Posts: 33
Hi Guys,
Just for your information, I managed to get the callback daemon working after fixing the init scripts by referring to examples on the web for SuseLinux. Anyone with good understaing of Linux/Unix will be able to fix it easily.

Cheers.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group