RE: How to shutdown & restart Gateway development release 1.1.6

"Cipher Strength" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Thanks Oded  i have tried the script but not works for me Follwing are the 
errors. i am using redhat 6.2.How to check bash version?



./kannel.init: NAME[${#NAME[@]}]="Bearerbox": bad substitution
./kannel.init: PROGRAM[${#PROGRAM[@]}]="/dev1.1.6/bearerbox": bad 
substitution
./kannel.init: PIDFILE[${#PIDFILE[@]}]="/var/run/bb.pid": bad substitution
./kannel.init: ARGLIST[${#ARGLIST[@]}]="/dev1.1.6/600.conf": bad 
substitution
./kannel.init: SLEEP[${#SLEEP[@]}]=5: bad substitution
./kannel.init: NAME[${#NAME[@]}]="SMSBox": bad substitution
./kannel.init: PROGRAM[${#PROGRAM[@]}]=/dev1.1.6/smsbox: bad substitution
./kannel.init: PIDFILE[${#PIDFILE[@]}]=/var/run/sb.pid: bad substitution
./kannel.init: ARGLIST[${#ARGLIST[@]}]=/dev1.1.6/600.conf: bad substitution
./kannel.init: SLEEP[${#SLEEP[@]}]=: bad substitution
./kannel.init: syntax error near unexpected token `(('
./kannel.init: ./kannel.init: line 173: `                        for (( t=0 
; t<
$TIMEWAIT ; t++ )); do'

Hope to listen from you soon

>From: "Oded Arbel" <[email protected]>
>To: <[email protected]>
>Subject: RE: How to shutdown & restart Gateway development release 1.1.6
>Date: Tue, 30 Apr 2002 17:08:25 +0200
>MIME-Version: 1.0
>Received: from [62.254.217.163] by hotmail.com (3.2) with ESMTP id 
>MHotMailBE97FF0400C84136E8103EFED9A39A330; Tue, 30 Apr 2002 08:11:06 -0700
>Received: from localhost.localdomain ([127.0.0.1] helo=geodude.3glab.org)by 
>geodude.3glab.org with esmtp (Exim 3.22 #1)id 172ZFX-0007b7-00; Tue, 30 Apr 
>2002 16:09:03 +0100
>Received: from mail.m-wise.co.il ([212.150.137.114])by geodude.3glab.org 
>with esmtp (Exim 3.22 #1)id 172ZEx-0007Wh-00for [email protected]; 
>Tue, 30 Apr 2002 16:08:27 +0100
>Received: from exchange.m-wise.com ([212.150.137.120])by mail.m-wise.co.il 
>(8.10.1/8.8.7) with ESMTP id g3UF8QB04026for <[email protected]>; Tue, 
>30 Apr 2002 18:08:26 +0300
>From [email protected] Tue, 30 Apr 2002 08:12:55 -0700
>content-class: urn:content-classes:message
>x-mimeole: Produced By Microsoft Exchange V6.0.4712.0
>Message-ID: <[email protected]>
>X-MS-Has-Attach:
>X-MS-TNEF-Correlator:
>Thread-Topic: How to shutdown & restart Gateway development release 1.1.6
>Thread-Index: AcHwVscgHg97UEGIRHGHipPHNoT7VAAAPcrw
>Sender: [email protected]
>Errors-To: [email protected]
>X-BeenThere: [email protected]
>X-Mailman-Version: 2.0.8
>Precedence: bulk
>List-Help: <mailto:[email protected]?subject=help>
>List-Post: <mailto:[email protected]>
>List-Subscribe: 
><http://kannel.3glab.org/mailman/listinfo/devel>,<mailto:[email protected]?subject=subscribe>
>List-Id: Development mailing list <devel.kannel.3glab.org>
>List-Unsubscribe: 
><http://kannel.3glab.org/mailman/listinfo/devel>,<mailto:[email protected]?subject=unsubscribe>
>List-Archive: <http://kannel.3glab.org/mailman/private/devel/>
>X-Original-Date: Tue, 30 Apr 2002 17:08:25 +0200
>
>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.
> >
> > -------------------------------------------------------
> >
> >
><< kannel.init >>




CIPHER


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
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.