Clayton, We roll our own. We're running on a Mac OSX Server so the solution consists of a number of shell and applescript scripts to relaunch the app. We use the built-in launchd utility to fire a script that will launch 4D Remote -- like you using a key file -- if the executable isn't running.
In our case we're more likely to crash than hang. I do recall the hang scenario was more of a problem back when we used a 3rd Party utility called "Keep-it-Up", but I don't think it has happened more than once in the past year. I have a number of remote services monitoring our 4D Remote web servers. In the case where an app has hung some failure tests would suggest the app was unresponsive. When we get notifications we can investigate and reboot. I also developed a simple web app (not in 4D) that runs on the local web server that I can use to reboot the 4D Remote web server from my phone if needed. One way to detect a 'hang' might be to have 4D Remote update a local disk file with a time stamp every N seconds, then have a script read the timestamp. If it doesn't change within N seconds then 4D might be hung. -- Brad Perkins On 1/8/13 3:15 PM, "Donahue, Clayton" <[email protected]> wrote: >Just a quick query ... > >For those of you using 4D Remote as your web server, how do you go about >handling hangs/crashes/disconnections? If client crashes or hangs, do you >have an automated process to open it and reconnect to 4D Server? > >In the past, we've used various methods to accomplish this ... usually it >involves a scheduled task checking to see if the 4D.exe process is still >running. If it isn't, it uses a 4DLink file to log back in. However, if >client *hangs* but doesn't *crash*, this isn't particularly effective. >Lately, we've been having some disconnection issues, so the client process >is still active (as far as Windows Explorer is concerned), but not >connected to 4D Server. > >I'm just trying to get a feel for whether folks are rolling their own >scripts, or if there's a "tried and true" technique that I've missed ;-) > >Thank you for any suggestions! > >- Clayton > > >-- > >*Clayton Donahue* > >iVantage Health Analytics | Formerly HMC, Inc. >300 Chestnut St. Ste. 101 | Needham, MA 02492 >o: 781.449.5287 | f: 781.449.8058 >email: [email protected] web: www.ivantagehealth.com > >___________________________________________________ > >Intelligence for the NEW Healthcare >_______________________________________________ >Active4D-dev mailing list >[email protected] >http://list.aparajitaworld.com/listinfo/active4d-dev >Archives: http://active4d-nabble.aparajitaworld.com/ > _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://active4d-nabble.aparajitaworld.com/
