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
|