How Do I....get Filemaker status & restart on Freeze

I need to find out what commands i’m lacking. I am new to Scripting.

The Problem:
I am trying to find a way to eliminate time loss during Filemaker Pro freezing.
What I am trying to do is have my server to first check and see if my Filemaker Pro Databases are accessible.
Then based on this result. Either leave alone and repeat later or Restart the server.

I have not even got to the repeating, I’m still trying to figure how to get it to recognize whether it’s up or not.

Here is what I had which i’ve taken from the forum and adapted. They still do not function correctly.

little background: I am using Filemaker Server 8 to host, 8.5 is my client. “fmserverd” is the daemon which automatically starts and hosts on server boot.

#1:
tell application “Activity Monitor” to set IsUp to (process is “fmserverd”) – returns true or false
if IsUp then
display dialog “Filemaker Server Is Running …”
else
tell application “Finder”
—restart
end tell
end if

#2
tell application “FileMaker Pro”
getURL “FMP8://user:password@192.100.100.200/Vacation Request '00”
end tell
tell “finder”
—restart

end tell

I did have one script recognizing that my 8.5 Client was started or not but it didn’t help me.

Anyone got any ideas? I would REALLY appreciate it.