Hi Jarl, I had similar problem before.
I simply add "sleep 3" (do nothing for 3 seconds) between the script which called bearerbox and smsbox. "3" seconds is just arbitrary number I picked and it works fine for me. Regards, Rudy On Wednesday 21 January 2004 07:51, Jarlco wrote: > Major problem I've run into! :s > > I want to be able to do this: > http://localhost:13000/restart?password=bar > > However when I do this the bearerbox restarts, but the smsbox FAILS! What > can I do to fix this? > I think I understand the problem, the smsbox tries to restart as well, but > the bearerbox is too slow and so the smsbox can't find the bearerbox yet > and then Panics and fails to start. > > Please help on this problem > > The exact error follows below: > > smsbox: > 2004-01-21 00:48:06 [0] INFO: HTTP: Opening server at port 13013. > 2004-01-21 00:48:06 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) > 2004-01-21 00:48:06 [0] DEBUG: Started thread 2 > (gwlib/http.c:server_thread) 2004-01-21 00:48:06 [0] INFO: Set up send sms > service at port 13013 2004-01-21 00:48:06 [0] DEBUG: Started thread 3 > (gw/smsbox.c:sendsms_thread) 2004-01-21 00:48:06 [0] > DEBUG: ---------------------------------------------- > 2004-01-21 00:48:06 [0] DEBUG: Kannel smsbox version cvs-20031115 starting > 2004-01-21 00:48:06 [0] DEBUG: Started thread 4 > (gw/smsbox.c:obey_request_thread > ) > 2004-01-21 00:48:06 [0] DEBUG: Started thread 5 > (gw/smsbox.c:url_result_thread) > 2004-01-21 00:48:06 [0] DEBUG: Started thread 6 > (gw/smsbox.c:http_queue_thread) > 2004-01-21 00:48:07 [0] ERROR: connect failed > 2004-01-21 00:48:07 [0] ERROR: System error 111: Connection refused > 2004-01-21 00:48:07 [0] ERROR: error connecting to server `localhost' at > port `1 > 3001' > 2004-01-21 00:48:07 [0] PANIC: Couldn't connect to the bearerbox.