Use command while compiling kannel.....

#./configure --prefix=/etc/kannel --enable-start-stop-daemon

Use the script to start and stop kannel.
http://old.nabble.com/file/p31103942/kannel.init.d.txt kannel.init.d.txt 
Hope it helps you.



Alejandro Guerrieri wrote:
> 
> Use the --daemonize switch to detach from the console.
> 
> To kill the processes, you can identify the process id's and kill -9 them,
> or do a killall by process name.
> 
> Check the user guide for the finer details.
> 
> Anyway, I'd recommend you to use an init script, there's some examples for
> RedHat/CentOS and other distros floating around, google a little bit and
> you'll find out.
> 
> Regards,
> --
> Alex Guerrieri
> 
> On 09/03/2011, at 07:50, "Jalal Uddin" <[email protected]> wrote:
> 
>> Hello,
>> 
>> I am new with kannel. I usually run kannel (bearerbox , smsbox) from
>> command prompt. Like below:
>> 
>>  
>> 
>> Terminal 1
>> 
>> $> cd /etc/kannel
>> 
>> $> Bearerbox kannel.conf
>> 
>>  
>> 
>> Terminal 2
>> 
>> $> cd /etc/kannel
>> 
>> $> Smsbox kannel.conf
>> 
>>  
>> 
>> And everything starts up and I can send sms from the browser using url.
>> The problem is when I start kannel like that it hangs the terminal as it
>> continuously listens to the service. But that is not a problem. The
>> problem is when I need to shut down the server. I need to stop those two
>> bearerbox and smsbox.
>> 
>>  
>> 
>> So say I apply Ctrl+z and they stop. Then I close the terminals, and
>> restart the pc.  But after that when I try to start bearerbox and smsbox,
>> I can’t do that. It says the ports are already in use. If I restart
>> kannel (well server restart should do that as well I guess) it still says
>> port is in use and nothing works. So I have to open kannel.conf and
>> change the port and then again the bearerbox and smsbox work. Interesting
>> is I can’t use the old ports never ever. So this is a problem that every
>> time I need to change kannel.conf or restart kannel or server. I have to
>> apply a brand new port. I understand this is very silly and should be the
>> case. I feel like all my previous runs are still running in the pc. But I
>> don’t know how to stop them and can use the same port next time. I have
>> searched hard in internet but I hardly see anyone facing such silly
>> problem, so I wonder what I am missing.
>> 
>>  
>> 
>> I will be very thankful if someone can point out what I am missing, like
>> what is the perfect way to restart kannel and how can I use the previous
>> ports again.
>> 
>>  
>> 
>> Thank you
>> 
>>  
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-stop-bearerbox-and-smsbox-tp31103850p31103942.html
Sent from the Kannel - User mailing list archive at Nabble.com.


Reply via email to