For restarting kannel via http, I don't have any idea. I looked to get some answer at gwlib/http.c, gw/bb_http.c and gw/bb_boxc.c. Alas, I'm stuck nowhere as I'm C illiterate (not to say that I might look at the wrong files). Cannot help you further.
BTW, In case you use start|stop|restart daemon which I do, (in Redhat) the file to edit is /etc/init.d/kannel. Rudy On Wednesday 21 January 2004 23:11, Jarlco wrote: > Cool, so it's solvable, that's great, however, the 3 seconds you are > talking about, how do I add those, which program is it that calls the > smsbox? > > I mean as I'm restarting it via http it must be some kind of kannel program > right? how would I go about modifying this? > > Thank you once again for your previous reply and thanks for any help on > this question, > Jarl > > > "Rudy" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > 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.