Attached is my almost final version of an init script for Kannel. it
works on Mandrake and RedHat, but as it only depends on BASH, it should
work anywhere where there's BASH 2 or greater.

How to use it - and modify the configuration at the top of the file
(wapbox is commented out, so be sure to uncomment it if you want it).
programs are listed in the order they are invoked at start, and are
stopped at the reverse order. 
call the script with 'start' to start all the programs, with 'stop' to
stop all the programs and with 'status' to see if the programs are up or
down.
If a program crashes for any reason, the script will restart it
automaticly, but in case of major trouble (the runner functions crashing
too, for example. not that I can imagine why that would happen), I
suggest running a cron job which calls the script with the parameter
'check' that will cause the script to check the status of the programs
and restart everything if needed.

This script is chkconfig ready.

Enjoy.

--
Oded Arbel
m-Wise Inc.
[EMAIL PROTECTED]
(972)-67-340014
(972)-9-9581711 (ext: 116)

::..
"Guns are made to be shot not thrown"
        --from 'Harley Davidson and the Marlboro Man'


> -----Original Message-----
> From: Steve Rapaport [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2002 4:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to shutdown & restart Gateway development 
> release 1.1.6
> 
> 
> 
> 
> ----------  Forwarded Message  ----------
> Subject: Re: How to shutdown & restart Gateway development 
> release 1.1.6
> Date: Tue, 30 Apr 2002 16:49:21 +0200
> From: Steve Rapaport <[EMAIL PROTECTED]>
> To: "Cipher Strength" <[EMAIL PROTECTED]>
> 
> 
> >What is the better way to shutdown kannel. I have compiled 
> it with --enable
> >start-stop deamon it works on my testing machine but on 
> production server
> >kannel not stopped.(ppl already repoting bug)
> >
> >Also if i restart kannel by killing bearerbox smsbox 
> automatically kills. so
> >is it right  how it should be done
> 
> I second, third, and fourth that question!
> 
> I also note that Oded is working on a script to work
> around the problem, but nobody seems to be working
> on finding the bug or fixing it.  What gives?
> 
> 
> Steve Rapaport.
> 
> -------------------------------------------------------
> 
> 

Attachment: kannel.init
Description: kannel.init

Reply via email to