Link to home
Start Free TrialLog in
Avatar of esoftbg
esoftbgFlag for Bulgaria

asked on

Is FireBird runned or not ?

I would like to use a Delphi function that returns True if there is FireBird runned and False if it's not.
Thanks !
Avatar of geobul
geobul

Hi Emo,

Please, tell me is it a service (or process) and what is its name (if it's a service I'l need the actual service name not the display name). Knowing that info you could either check if the service or process is running. (even on a remote computer if there are no firewalls in between or other security related barriers).

I don't have experience with FireBird, though, but that's a general way that should work in almost all cases.

Regards, Geo
Avatar of esoftbg

ASKER

Hi Geo,
I see in my TaskManager two active processes:
fbguard.exe and fbserver.exe
The document on http://www.ibphoenix.com/downloads/qsg.pdf says that "If Firebird is running, you should see one process named ibguard...". I guess that this or more of the processes listed in the above link would be the process(es) to monitor as geobul pointed out.

Best regards,
A.
Ow, was a second too late there ;-)
Avatar of esoftbg

ASKER

I think during the instalation I select to work as a service, but I am not sure.
Avatar of kretzschmar
well you can check for the service fbguard,
but this service runs only if fb is installed as local server.
if you have a database-server running fb this service
would not be on the clientmachine.

why not simple try to connect?

meikl ;-)
Avatar of esoftbg

ASKER

I'll be back tommorrow ....
You could simply enumerate all runnung processes and if fbguard.exe is there assume that FireBird is running. If you need the code let me know. Perhaps what meikl suggested would be a better solution (I mean try to connect).
Avatar of esoftbg

ASKER

Hi Geo,

If you have a code for enumerating all runnung processes, please share it.

There is in the Control Panel "FireBird 1.5 Server Manager". Starting it I could manage some properties about the FireBird:
1). Use the Guardian (or not);
2). Run as a Servise (or as an Application);
3). Start Automatically (or Manually).
// When I start Firebird as an Application it is appear a tray Icon, otherwise there is not one.  

So to indicate Firebird as working, it is enough to find    fbserver.exe    as a process.
Avatar of esoftbg

ASKER

Hi meikl,

> well you can check for the service fbguard,
> but this service runs only if fb is installed as local server.
> if you have a database-server running fb this service
> would not be on the clientmachine.

> why not simple try to connect?

Ofcourse you are right, it is the best way: the connection will be successfull (or not) ....
But the reason for an unsuccessfull connection could be different ones (not only Firebirt is not active)
I would like to know (if it is possible) is Firebird active
ASKER CERTIFIED SOLUTION
Avatar of geobul
geobul

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of esoftbg

ASKER

Thanks Geo,
The function works fine !
Using it I check for Firebird ('fbserver.exe') and Interbase ('ibserver.exe') and if atleast one of them is is running my application continues Connection to the database.
Thanks !
Emil
The pleasure was mine. Have a nice day ;-)
Avatar of esoftbg

ASKER

Have a nice day :-))