Thanks Nikos,

I will go the --panic-script way.

Regards,

TSHIMANGA Minkoka
VAS Manager
Mobile: +243 814443113
Telephone: +243 815560341 ext. 0583
Fax: +243 813010373
Email: [email protected]



-----Original Message-----
From: Nikos Balkanas [mailto:[email protected]]
Sent: Tuesday 08 March 2011 09:20
To: Tshimanga Minkoka; [email protected]
Subject: Re: bearerbox restart with parachute but not smsbox

Hi,

This is normal behaviour (ie, not to restart smsbox). BB never starts smsbox
on its own, this is an option left to the user, if he doesn't want to start
smsbox. Besides the only one that knows that an smsbox is connected is the
child, which crashes suddenly. Smsbox goes down, not because bb tells it to
shutdown, but because heartbeats stop responding. Since there is no sense
for smsbox to be up without a bb, it goes down.

Read in the UG about --panic-script. Or you can use an external monitoring
script, if smsbox goes down to restart it.

BR,
Nikos
----- Original Message -----
From: "Tshimanga Minkoka" <[email protected]>
To: <[email protected]>
Sent: Tuesday, March 08, 2011 10:04 AM
Subject: RE: bearerbox restart with parachute but not smsbox


Dear users,

I am still experiencing a crash of bearerbox almost every day.

I am starting the bearerbox and smsbox with the --parachute option, with an
/etc/init.d/kannel script.
The machine runs on RHEL 5.5 with Kannel SVN of 20101008.

It seems to me that bearerbox child process crashes for a unknown reason,
then kills parent and child smsbox processes, then the bearerbox parent
restarts the bearerbox child (what is ok), but the no smsbox process is then
started (cause of the WARNING: smsbox_list empty! In bearerbox log). We need
to come and restart the whole manually.

Below are extracts from relevant log files.

I need to have a definitive fix for this issue, and I will appreciate any
help or advise.
Any Kannel users that had experienced or solved similar problems, and keen
to share it with me would be of great help.

I was also thinking of using the --panic-script option to restart the
processes. But I haven't tested it yet.

/var/log/messages:
...
Mar  7 20:57:50 vaskannel bearerbox[7974]: [7974] [0] ERROR: Caught child
PID (3494) which died due to signal 6
Mar  7 20:57:50 vaskannel smsbox[22589]: [22589] [0] INFO: Child process
exited gracefully, exit...
Mar  7 20:57:55 vaskannel bearerbox[7974]: [7974] [0] INFO: Child process
with PID (2151) started.
...

/var/log/kannel/bearerbox_log_file.log:
...
2011-03-07 20:57:49 [3494] [11] DEBUG: boxc_receiver: heartbeat with load
value 0 received
2011-03-07 20:57:49 [3494] [12] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2011-03-07 20:57:49 [3494] [12] DEBUG: boxc_sender: sent message to
<127.0.0.1>
2011-03-07 20:57:49 [3494] [11] DEBUG: boxc_receiver: got ack
2011-03-07 20:57:50 [3494] [11] DEBUG: boxc_receiver: sms received
2011-03-07 20:57:50 [3494] [11] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2011-03-07 20:57:55 [2151] [0] INFO: Added logfile
`/var/log/kannel/bearerbox_log_file.log' with level `0'.
2011-03-07 20:57:55 [2151] [0] INFO: Started access logfile
`/var/log/kannel/bearerbox_access_log.log'.
2011-03-07 20:57:55 [2151] [0] INFO: SSL not supported, no SSL
initialization done.
2011-03-07 20:57:55 [2151] [0] INFO: HTTP: Opening server at port 13000.
2011-03-07 20:57:55 [2151] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2011-03-07 20:57:55 [2151] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2011-03-07 20:57:55 [2151] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2011-03-07 20:57:55 [2151] [0] DEBUG: starting smsbox connection module
2011-03-07 20:57:55 [2151] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
2011-03-07 20:57:55 [2151] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsboxes)
2011-03-07 20:57:55 [2151] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run)
2011-03-07 20:57:55 [2151] [0] INFO: Set SMS resend frequency to 30 seconds.
2011-03-07 20:57:55 [2151] [0] INFO: SMS resend retry set to 128.
2011-03-07 20:57:55 [2151] [0] DEBUG: MO concatenated message handling
enabled
2011-03-07 20:57:55 [2151] [0] INFO: Set throughput to 50.000 for smsc id
<vaskannel_live>
2011-03-07 20:57:55 [2151] [0] INFO: DLR rerouting for smsc id
<vaskannel_live> disabled.
2011-03-07 20:57:55 [2151] [0] INFO: Added logfile
`/var/log/kannel/smsc_smpp_vaskannel_live_log_file.log' with level `0'.
2011-03-07 20:57:55 [2151] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
maps to pid 2151.
2011-03-07 20:57:55 [2151] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
maps to pid 2151.
2011-03-07 20:57:55 [2151] [2] DEBUG: HTTP: Including port 13000, fd 8 for
polling in server thread
2011-03-07 20:57:55 [2151] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 2151.
2011-03-07 20:57:55 [2151] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
to pid 2151.
2011-03-07 20:57:55 [2151] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
maps to pid 2151.
2011-03-07 20:57:55 [2151] [0] DEBUG: Started thread 6
(gw/smsc/smsc_smpp.c:io_thread)
2011-03-07 20:57:55 [2151] [0] DEBUG: Started thread 7
(gw/smsc/smsc_smpp.c:io_thread)
2011-03-07 20:57:55 [2151] [0] INFO: Set throughput to 15.000 for smsc id
<vaskannel_drp>
2011-03-07 20:57:55 [2151] [0] INFO: DLR rerouting for smsc id
<vaskannel_drp> disabled.
2011-03-07 20:57:55 [2151] [0] INFO: Added logfile
`/var/log/kannel/smsc_smpp_vaskannel_drp_log_file.log' with level `0'.
2011-03-07 20:57:55 [2151] [7] DEBUG: Thread 7
(gw/smsc/smsc_smpp.c:io_thread) maps to pid 2151.
2011-03-07 20:57:55 [2151] [7] INFO: Logging thread `7' to logfile
`/var/log/kannel/smsc_smpp_vaskannel_live_log_file.log' with level `0'.
2011-03-07 20:57:55 [2151] [0] DEBUG: Started thread 8
(gw/smsc/smsc_smpp.c:io_thread)
2011-03-07 20:57:55 [2151] [0] DEBUG: Started thread 9
(gw/smsc/smsc_smpp.c:io_thread)
2011-03-07 20:57:55 [2151] [8] DEBUG: Thread 8
(gw/smsc/smsc_smpp.c:io_thread) maps to pid 2151.
2011-03-07 20:57:55 [2151] [8] INFO: Logging thread `8' to logfile
`/var/log/kannel/smsc_smpp_vaskannel_drp_log_file.log' with level `0'.
2011-03-07 20:57:55 [2151] [0] DEBUG: Started thread 10
(gw/bb_smscconn.c:sms_router)
2011-03-07 20:57:55 [2151] [0]
INFO: ----------------------------------------
2011-03-07 20:57:55 [2151] [0] INFO: Kannel bearerbox II version
svn-runknown starting
2011-03-07 20:57:55 [2151] [10] DEBUG: Thread 10
(gw/bb_smscconn.c:sms_router) maps to pid 2151.
2011-03-07 20:57:55 [2151] [0] INFO: MAIN: Start-up done, entering mainloop
2011-03-07 20:57:55 [2151] [9] DEBUG: Thread 9
(gw/smsc/smsc_smpp.c:io_thread) maps to pid 2151.
2011-03-07 20:57:55 [2151] [9] INFO: Logging thread `9' to logfile
`/var/log/kannel/smsc_smpp_vaskannel_drp_log_file.log' with level `0'.
2011-03-07 20:57:55 [2151] [6] DEBUG: Thread 6
(gw/smsc/smsc_smpp.c:io_thread) maps to pid 2151.
2011-03-07 20:57:55 [2151] [6] INFO: Logging thread `6' to logfile
`/var/log/kannel/smsc_smpp_vaskannel_live_log_file.log' with level `0'.
2011-03-07 20:58:55 [2151] [4] WARNING: smsbox_list empty!
2011-03-07 20:58:55 [2151] [4] WARNING: smsbox_list empty!
2011-03-07 20:58:55 [2151] [4] WARNING: smsbox_list empty!
2011-03-07 20:58:55 [2151] [4] WARNING: smsbox_list empty!
2011-03-07 20:58:55 [2151] [4] WARNING: smsbox_list empty!
...

/var/log/kannel/smsbox
...
2011-03-07 20:57:49 [22590] [4] INFO: Starting to service <4> from
<+243812277219> to <42616>
2011-03-07 20:57:49 [22590] [9] DEBUG: Queue contains 0 pending requests.
2011-03-07 20:57:49 [22590] [9] DEBUG: Parsing URL
`http://localhost/kannel_catchall.php?from=%2B243812277219&to=42616&body=4&dateti
me=2011-03-07+19:57:49&url=get&gmt=2011-03-07+19:57:49&src=%2B243812277219&dst=42616&smsc=vaskannel_live&bin=4&ascii=4&keyword=4&epo
ch=1299527869&a_party=%2B243812277219&b_party=42616&internal_id=218e9313-f47f-44a4-a93d-695f543dc47e&foreign_id=&dlr_req=-1&dlr_res=
4&dlr_url=&user=default&coding=0&class=-1&charset=UTF-8&dcs=00&udh=&smsc_center=&mwi=-1&billing=&account=VASKANNEL&meta_data=%3Fsmpp
%3F':
2011-03-07 20:57:49 [22590] [9] DEBUG:   Scheme: http://
2011-03-07 20:57:49 [22590] [9] DEBUG:   Host: localhost
2011-03-07 20:57:49 [22590] [9] DEBUG:   Port: 80
2011-03-07 20:57:49 [22590] [9] DEBUG:   Username: (null)
2011-03-07 20:57:49 [22590] [9] DEBUG:   Password: (null)
2011-03-07 20:57:49 [22590] [9] DEBUG:   Path: /kannel_catchall.php
2011-03-07 20:57:49 [22590] [9] DEBUG:   Query:
from=%2B243812277219&to=42616&body=4&datetime=2011-03-07+19:57:49&url=get&gmt=2011-0
3-07+19:57:49&src=%2B243812277219&dst=42616&smsc=vaskannel_live&bin=4&ascii=4&keyword=4&epoch=1299527869&a_party=%2B243812277219&b_p
arty=42616&internal_id=218e9313-f47f-44a4-a93d-695f543dc47e&foreign_id=&dlr_req=-1&dlr_res=4&dlr_url=&user=default&coding=0&class=-1
&charset=UTF-8&dcs=00&udh=&smsc_center=&mwi=-1&billing=&account=VASKANNEL&meta_data=%3Fsmpp%3F
2011-03-07 20:57:49 [22590] [9] DEBUG:   Fragment: (null)
2011-03-07 20:57:49 [22590] [9] DEBUG: Connecting nonblocking to <127.0.0.1>
2011-03-07 20:57:49 [22590] [9] DEBUG: HTTP: Opening connection to
`localhost:80' (fd=28).
2011-03-07 20:57:49 [22590] [9] DEBUG: Socket connecting
2011-03-07 20:57:49 [22590] [8] DEBUG: Get info about connecting socket
2011-03-07 20:57:49 [22590] [8] DEBUG: HTTP: Sending request:
2011-03-07 20:57:49 [22590] [8] DEBUG: Octet string at 0x90d2e78:
2011-03-07 20:57:49 [22590] [8] DEBUG:   len:  554
2011-03-07 20:57:49 [22590] [8] DEBUG:   size: 1024
2011-03-07 20:57:49 [22590] [8] DEBUG:   immutable: 0
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 47 45 54 20 2f 6b 61 6e 6e 65
6c 5f 63 61 74 63   GET /kannel_catc
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 68 61 6c 6c 2e 70 68 70 3f 66
72 6f 6d 3d 25 32   hall.php?from=%2
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 42 32 34 33 38 31 32 32 37 37
32 31 39 26 74 6f   B243812277219&to
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 3d 34 32 36 31 36 26 62 6f 64
79 3d 34 26 64 61   =42616&body=4&da
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 74 65 74 69 6d 65 3d 32 30 31
31 2d 30 33 2d 30   tetime=2011-03-0
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 37 2b 31 39 3a 35 37 3a 34 39
26 75 72 6c 3d 67   7+19:57:49&url=g
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 65 74 26 67 6d 74 3d 32 30 31
31 2d 30 33 2d 30   et&gmt=2011-03-0
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 37 2b 31 39 3a 35 37 3a 34 39
26 73 72 63 3d 25   7+19:57:49&src=%
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 32 42 32 34 33 38 31 32 32 37
37 32 31 39 26 64   2B243812277219&d
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 73 74 3d 34 32 36 31 36 26 73
6d 73 63 3d 76 61   st=42616&smsc=va
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 73 6b 61 6e 6e 65 6c 5f 6c 69
76 65 26 62 69 6e   skannel_live&bin
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 3d 34 26 61 73 63 69 69 3d 34
26 6b 65 79 77 6f   =4&ascii=4&keywo
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 72 64 3d 34 26 65 70 6f 63 68
3d 31 32 39 39 35   rd=4&epoch=12995
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 32 37 38 36 39 26 61 5f 70 61
72 74 79 3d 25 32   27869&a_party=%2
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 42 32 34 33 38 31 32 32 37 37
32 31 39 26 62 5f   B243812277219&b_
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 70 61 72 74 79 3d 34 32 36 31
36 26 69 6e 74 65   party=42616&inte
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 72 6e 61 6c 5f 69 64 3d 32 31
38 65 39 33 31 33   rnal_id=218e9313
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 2d 66 34 37 66 2d 34 34 61 34
2d 61 39 33 64 2d   -f47f-44a4-a93d-
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 36 39 35 66 35 34 33 64 63 34
37 65 26 66 6f 72   695f543dc47e&for
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 65 69 67 6e 5f 69 64 3d 26 64
6c 72 5f 72 65 71   eign_id=&dlr_req
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 3d 2d 31 26 64 6c 72 5f 72 65
73 3d 34 26 64 6c   =-1&dlr_res=4&dl
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 72 5f 75 72 6c 3d 26 75 73 65
72 3d 64 65 66 61   r_url=&user=defa
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 75 6c 74 26 63 6f 64 69 6e 67
3d 30 26 63 6c 61   ult&coding=0&cla
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 73 73 3d 2d 31 26 63 68 61 72
73 65 74 3d 55 54   ss=-1&charset=UT
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 46 2d 38 26 64 63 73 3d 30 30
26 75 64 68 3d 26   F-8&dcs=00&udh=&
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 73 6d 73 63 5f 63 65 6e 74 65
72 3d 26 6d 77 69   smsc_center=&mwi
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 3d 2d 31 26 62 69 6c 6c 69 6e
67 3d 26 61 63 63   =-1&billing=&acc
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 6f 75 6e 74 3d 56 41 53 4b 41
4e 4e 45 4c 26 6d   ount=VASKANNEL&m
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 65 74 61 5f 64 61 74 61 3d 25
33 46 73 6d 70 70   eta_data=%3Fsmpp
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 25 33 46 20 48 54 54 50 2f 31
2e 31 0d 0a 48 6f   %3F HTTP/1.1..Ho
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 73 74 3a 20 6c 6f 63 61 6c 68
6f 73 74 0d 0a 43   st: localhost..C
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 6f 6e 6e 65 63 74 69 6f 6e 3a
20 6b 65 65 70 2d   onnection: keep-
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 61 6c 69 76 65 0d 0a 55 73 65
72 2d 41 67 65 6e   alive..User-Agen
: 2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 74 3a 20 4b 61 6e 6e 65 6c
2f 73 76 6e 2d 72 75   t: Kannel/svn-ru
2011-03-07 20:57:49 [22590] [8] DEBUG:   data: 6e 6b 6e 6f 77 6e 0d 0a 0d 0a
nknown....
2011-03-07 20:57:49 [22590] [8] DEBUG: Octet string dump ends.
2011-03-07 20:57:50 [22590] [8] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>
2011-03-07 20:57:50 [22590] [8] DEBUG: HTTP: Received response:
2011-03-07 20:57:50 [22590] [8] DEBUG: Octet string at 0x91359e0:
2011-03-07 20:57:50 [22590] [8] DEBUG:   len:  335
2011-03-07 20:57:50 [22590] [8] DEBUG:   size: 1024
2011-03-07 20:57:50 [22590] [8] DEBUG:   immutable: 0
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 44 61 74 65 3a 20 4d 6f 6e 2c
20 30 37 20 4d 61   Date: Mon, 07 Ma
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 72 20 32 30 31 31 20 31 39 3a
35 37 3a 34 39 20   r 2011 19:57:49
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 47 4d 54 0d 0a 53 65 72 76 65
72 3a 20 41 70 61   GMT..Server: Apa
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 63 68 65 2f 32 2e 32 2e 33 20
28 52 65 64 20 48   che/2.2.3 (Red H
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 61 74 29 0d 0a 58 2d 50 6f 77
65 72 65 64 2d 42   at)..X-Powered-B
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 79 3a 20 50 48 50 2f 35 2e 33
2e 33 0d 0a 58 2d   y: PHP/5.3.3..X-
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 56 41 53 2d 49 44 3a 20 56 41
53 4b 41 4e 4e 45   VAS-ID: VASKANNE
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 4c 2d 32 30 31 31 30 33 30 37
32 30 35 37 34 39   L-20110307205749
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 2d 42 38 44 30 45 41 35 33 32
32 43 30 46 38 36   -B8D0EA5322C0F86
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 33 46 33 38 39 39 31 44 39 31
32 31 41 45 30 42   3F38991D9121AE0B
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 43 0d 0a 43 6f 6e 74 65 6e 74
2d 4c 65 6e 67 74   C..Content-Lengt
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 68 3a 20 39 31 0d 0a 43 6f 6e
6e 65 63 74 69 6f   h: 91..Connectio
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 6e 3a 20 63 6c 6f 73 65 0d 0a
43 6f 6e 74 65 6e   n: close..Conten
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 74 2d 54 79 70 65 3a 20 74 65
78 74 2f 68 74 6d   t-Type: text/htm
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 6c 3b 20 63 68 61 72 73 65 74
3d 55 54 46 2d 38   l; charset=UTF-8
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 0d 0a 0d 0a 45 71 75 61 74 65
75 72 3a 20 56 6f   ....Equateur: Vo
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 74 65 20 65 6e 72 65 67 69 73
74 72 65 2e 20 4d   te enregistre. M
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 65 72 63 69 20 70 6f 75 72 20
76 6f 74 72 65 20   erci pour votre
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 70 61 72 74 69 63 69 70 61 74
69 6f 6e 20 61 75   participation au
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 20 76 6f 74 65 20 64 65 20 6c
61 20 56 4f 44 41    vote de la VODA
2011-03-07 20:57:50 [22590] [8] DEBUG:   data: 43 4f 4d 20 53 55 50 45 52 53
54 41 52 2e 0a      COM SUPERSTAR..
2011-03-07 20:57:50 [22590] [8] DEBUG: Octet string dump ends.
2011-03-07 20:57:50 [22590] [5] DEBUG: message length 90, sending 1 messages
2011-03-07 20:57:50 [22590] [0] DEBUG: Got ACK (0) of
cdcebfca-25cc-4d5f-aa9b-7e5ae2dce79b
2011-03-07 20:57:50 [22590] [0] DEBUG: No client - multi-send or ACK to
pull-reply
2011-03-07 20:57:50 [22590] [0] ERROR: Connection closed by the bearerbox.
2011-03-07 20:57:50 [22590] [0] INFO: Received (and handled?) 21498 requests
in 46256 seconds (0.46 per second)
2011-03-07 20:57:50 [22590] [0] INFO: Kannel smsbox terminating.
2011-03-07 20:57:50 [22590] [7] DEBUG: Thread 7
(gw/heartbeat.c:heartbeat_thread) terminates.
2011-03-07 20:57:50 [22590] [0] DEBUG: Waiting for 2
(gwlib/http.c:server_thread) to terminate
2011-03-07 20:57:50 [22590] [3] DEBUG: HTTP: No clients with requests,
quitting.
2011-03-07 20:57:50 [22590] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread)
terminates.
2011-03-07 20:57:50 [22590] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
terminates.
2011-03-07 20:57:50 [22590] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
terminates.
2011-03-07 20:57:50 [22590] [0] DEBUG: Waiting for 4
(gw/smsbox.c:obey_request_thread) to terminate
2011-03-07 20:57:50 [22590] [4] DEBUG: Thread 4
(gw/smsbox.c:obey_request_thread) terminates.
2011-03-07 20:57:50 [22590] [6] DEBUG: Thread 6
(gw/smsbox.c:http_queue_thread) terminates.
2011-03-07 20:57:50 [22590] [0] DEBUG: Waiting for 5
(gw/smsbox.c:url_result_thread) to terminate
2011-03-07 20:57:50 [22590] [5] DEBUG: Thread 5
(gw/smsbox.c:url_result_thread) terminates.
2011-03-07 20:57:50 [22590] [0] DEBUG: Waiting for 9
(gwlib/http.c:write_request_thread) to terminate
2011-03-07 20:57:50 [22590] [9] DEBUG: Thread 9
(gwlib/http.c:write_request_thread) terminates.
2011-03-07 20:57:50 [22590] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller)
terminates.
2011-03-07 20:57:50 [22590] [0] DEBUG: Immutable octet strings: 254.



TSHIMANGA Minkoka
VAS Manager
Mobile: +243 814443113
Telephone: +243 815560341 ext. 0583
Fax: +243 813010373
Email: [email protected]
Vodacom Congo (DRC) s.p.r.l.


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Tshimanga Minkoka
Sent: Wednesday 02 March 2011 13:00
To: [email protected]
Subject: bearerbox restart with parachute but not smsbox

Dear,

I have a problem for which I will appreciate help and inputs.

I start kannel as a service (I can attach if required the init.d script).

As you can see from the output below, I start bearerbox and smsbox with the
parachute option.

# ps -ef | grep kannel
root      1781     1  0 08:01 ?        00:00:00
/usr/local/kannel/sbin/smsbox --daemonize --parachute --pid-file
/var/run/kannel/smsbox.pid -- /etc/kannel/kannel.conf
root      1782  1781  0 08:01 ?        00:00:42
/usr/local/kannel/sbin/smsbox --daemonize --parachute --pid-file
/var/run/kannel/smsbox.pid -- /etc/kannel/kannel.conf
root      7974     1  0 Feb24 ?        00:00:00
/usr/local/kannel/sbin/bearerbox --daemonize --parachute --pid-file
/var/run/kannel/bearerbox.pid -- /etc/kannel/kannel.conf
root     18752  7974  0 Mar01 ?        00:00:41
/usr/local/kannel/sbin/bearerbox --daemonize --parachute --pid-file
/var/run/kannel/bearerbox.pid -- /etc/kannel/kannel.conf

The problem is when bearerbox experience a problem and crashes, it kills
smsbox, then restart itself, but smsbox never restarts.
We need to come back and restart it manually.

Is there a possibility to have bearerbox triggers a restart of smsbox?

If needed I can provide relevant log and configuration file.

Regards,

TSHIMANGA Minkoka
VAS Manager
Mobile: +243 814443113
Office: + 243 815560341 ext. 0583
Fax: +243 813010373
Email: [email protected]









Reply via email to