Kannel is not a "point and click" ware. before going further take a break, and think what you are doing.
starting up kannel with php is like trying to heat a microwave with matches. 1. PHP is a programming language that can help you to manager your data, but it is not recommended to use PHP for starting up 'kannel', for that are better tools, read more about: http://cr.yp.to/daemontools.html. 2. kannel is a sms gateway it receives/sends SMS, and with PHP you can manage does messages. Before going further, I suggest to play with a (*nix) VPS or install this: http://www.pcbsd.org/ that could help you to understand some more basic stuff otherwise you could end burning your full house. On Sat, Jan 12, 2013 at 8:43 PM, michael osakede <ire...@yahoo.com> wrote: > Hi, > > I tried to do this using php > > <?php > $out=exec("nohup /usr/local/sbin/bearerbox /root/smskannel.conf &"); > echo $out; > ?> > > when i check the process > ps aux | grep box > the bearerbox process is not running, any idea what am doing wrong and how i > can fix this? > > Michael > > > ________________________________ > From: Sarfaraz Jamal <s...@reachoutwireless.com> > To: users@kannel.org > Sent: Saturday, January 12, 2013 7:45 PM > Subject: RE: Kannel Start/Stop Restart Script > > Here is a script we use for restarting kannel: > > #!/bin/sh > clear > echo Restarting the process, please allow 15 seconds... > kill -9 $(/sbin/pidof smsbox) > kill -9 $(/sbin/pidof bearerbox) > cd /opt/gw > sleep 5 > nohup ./bearerbox -v 1 > bearerbox.log & > sleep 5 > nohup ./smsbox -v 1 > smsbox.log & > cd /root > clear > echo Restarted - Verify with web that both services are running. > > > >