This is expected and logical.

Kannel runs as a daemon, and the commands are only accepted when the daemon
is running. If you stop it, you cannot start it again by running a command
on kannel's admin port, since kannel is no longer running and the port is
not being open at all.

To be able to do so, you'd need to run a "parent" daemon that listens for
your commands and starts/stop kannel on your behalf.

Many control panels use this approach to start/stop services I think.

AFAIK there's nothing like that on the contrib folder, but could be a good
thing to have.

Regards,

Alejandro Guerrieri

On Fri, Oct 31, 2008 at 1:11 PM, Alvaro Cornejo <[EMAIL PROTECTED]>wrote:

> I usually use start kannel from cli.
>
> Also note that restart does not work well... It actually stop kannel but
> don't start it...
>
> Might look at code to review the code and fixit
>
>
>
> |-----------------------------------------------------------------------------------------------------------------|
> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
> celular y Nextel
> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
> y GPRS online
>              Visitenos en www.perusms.NET www.smsglobal.com.mx y
> www.pravcom.com
>
>
>
> On Fri, Oct 31, 2008 at 1:43 AM, wahib <[EMAIL PROTECTED]> wrote:
>
>>
>> @Alvaro ... Thanks sir. Yeah i found index.php and its really easier to
>> get
>> updated on the kannel status by this web-interface.
>> But again problem is there. The services available are status, restart,
>> resume etc. but not to start kannel. These all services work when the
>> Kannel
>> is actually running. I need to know how if i can use the start service
>> from
>> a web-page like these.
>>
>> Thanks in advance.
>>
>> Regards,
>> wahib
>> --
>> View this message in context:
>> http://www.nabble.com/Can-i-run-kannel-commands-through-php-scripts----tp20226678p20260830.html
>> Sent from the Kannel - User mailing list archive at Nabble.com.
>>
>>
>>
>

Reply via email to