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

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to