Re: bearerbox and smsbox http restart, possible bug?

Yulianto Z <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On Thu, 2004-01-29 at 07:32, Jarlco wrote:
> 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 &

utils/run_kannel_box --min-delay 30 gw/smsbox gw/kannel.conf &

run_kannel_box (under utils) is respawning utility..  whenever smsbox
die becoz bearerbox being restarted, it will re-execute smsbox after 30
secs delay.

> 
> 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...
-- 
Regards,
[cogito ergo sum]

GPG fingerprint:
 E2BC 9029 F3FB 90C7 2FAB 9E42 421E F015 119E 0D5D
GPG Public key:
  http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x119E0D5D
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAGffdQh7wFRGeDV0RAv/QAKCj01f8oym/Hu+nhyAMiRgxkcm5XQCgj+RC
zpuOpx8+R0FuuOYLZ8B6SR4=
=mGsf
-----END PGP SIGNATURE-----
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.