Re: bearerbox and smsbox http restart, possible bug?

"Jarlco" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
I'm afraid I didn't really understand how to use the:
$ run_kannel_box --min-delay 30 smsbox /etc/kannel/kannel.conf

What I want to be able to do is RESTART (or start) kannel from a webpage
link in php.

This is where I'm at:

I start kannel with:
gw/bearerbox gw/kannel.conf &
gw/smsbox gw/kannel.conf &

Then I check the status with my php script with:
http://localhost:12345/status?

Now, it clearly says in the userguide that:
http://localhost:12345/restart?password=bar"
should work, however it doesn't because the smsbox is too quick and can't
find the port.
(is this normal? I mean is the restart thing just not useable yet? )

So I've tried to solve this but with no luck... a few things I've tried are:

1. create a file called kannelstart, make it executable and then call it via
my php script with: exec(./startkannel);
the file contains:
/home..../gw/bearerbox .....kannel.conf &
sleep 10
....................smsbox .........kannel.conf &

this however doesn't work for reasons I can't explain either.

PLEASE help I'm really trying to understand how to do this,
Jarl


"Yulianto Z" <[email protected]> wrote in message
news:[email protected]...

Jarl,
you may try to use run_kannel_box for smsbox...eg.
$ run_kannel_box --min-delay 30 smsbox /etc/kannel/kannel.conf
it will respawn the dead smsbox...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.