Determine TurboFloatServer status ?

Hello,

I am writing a cross platform TurboFloatServer application for Windows, Mac OS X, and Linux.

I am using the following method to determine the status of activation and server status.

On Startup the application does the following:

TFS -a -config=path-to-config (No product key)

If I get a successful return then I set the following state flags:bool ServerIsActivated=truebool ServerIsInstalled=false

If I get a failure return then I scan the output (STDERR) of the TFS process:

Case 1) Check to see if the output matches the text "You can only run one instance"bool ServerIsActivated=truebool ServerIsInstalled=true

Case 2) Some other error was returnedbool ServerIsActivated=falsebool ServerIsInstalled=false

Is this a reliable method of gathering TFS status information ?

Thanks,Paul Fossey

No, that won't work consistently. Can I ask why you want to do this? Why not just try to connect to the server (call TF_RequestLease() ) and if your app fails to get the lease then take some sort of action?

Our example code shows various method of handling lease-request failures.

Hi Wyatt,The purpose of this app is a tool for the IT folks at the schools and universities that use our product.The basic functionality is this:Activate the TFSInstall/Start TFSStop/Uninstall TFSEdit a subset of the TFS configuration settingsView the TFS logs and setup to email them to us for problem solving.

So if I can connect to the server and request a lease on the same machine that is running the TFS then I can add that feature to see if the server is up and running. Will this work ?

Thanks,Paul

that feature to see if the server is up and running. Will this work ?

Yes. Even if the TurboFloat Server rejects the request for the lease you still know it's up and running.