esoftbg
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 !
Thanks !
ASKER
Hi Geo,
I see in my TaskManager two active processes:
fbguard.exe and fbserver.exe
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.
Best regards,
A.
Ow, was a second too late there ;-)
ASKER
I think during the instalation I select to work as a service, but I am not sure.
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 ;-)
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 ;-)
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).
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.
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.
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
> 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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 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 ;-)
ASKER
Have a nice day :-))
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