Jon, That's an intriguing piece of code you have there. Do you know of anyway (or theory of a way) to send out an http request and run a check to see if a web server responds within a certain amount of time using DOS commands? Quite often (for me) a Tango service will hang but remain in a running state as a service.
- Jake Stevens ----- Original Message ----- From: "Jon Grieve" <[EMAIL PROTECTED]> To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 4:17 PM Subject: RE: Witango-Talk: Restarting Tango > Henning, > > Attached is a Windows 2000 script that checks whether the T2K service is > running and acts accordingly. I think you're looking for Linux examples, > but I thought this may help inspire you to code a Linux equivalent; i.e. > searching for the appropriate daemon (says he, trying to sound all > knowledgeable ;). > > Jon > > > -----Original Message----- > From: Henning Sittler [mailto:[EMAIL PROTECTED]] > Sent: 15 July 2002 17:29 > To: Multiple recipients of list witango-talk > Subject: Witango-Talk: Restarting Tango > > > I'm familiar with cron jobs, etc on Linux, but I would like to write script > that restarts the T2K server whenever a tango page is requested but the > server is not started (for whatever reason). > > By default, when a taf is requeted and the server is not started, the > webserver responds with a message, something like: > > -- > Tango 2000 > > Could not connect to server. > -- > > Anyone know where this message is located such that it could be altered? > I'd like to change it to include a redirect to something that triggers a > script that will restart the server and redirect to a working taf. > > Since the tango server is obviously not running at that point, I would > choose to use shell scripts, perl or php to do the restarting. > > Anyoine know where I can start? If I can find out what generates the above > error msg html, I cand probably get going from there. > > Thanks, > > > Henning Sittler > www.inscriber.com > ________________________________________________________________________ > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > with unsubscribe witango-talk in the message body > > ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
