Subject | Re: [firebird-support] How guardian works? |
---|---|
Author | Martijn Tonies |
Post date | 2006-02-08T12:29:23Z |
Hi,
needed.
What the guardian does, is re-starting Firebird if it fails. Now, there
are two things to remember:
1 - the database service shouldn't crash.
2 - Win2K and up already have a mechanism in the ServicesAPI to
tell Windows to automatically restart the service. Use that instead.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> I'm creating a new fbserver.exe service instance using the win32 API.If you're using W2K or up, then don't bother - the guardian isn't
> The name and the displayname of this new service is a custom name of
> my own. And the firebird.conf for this fbserver.exe was changed to use
> other port than 3050.
>
> My doub is: There is any sense in creating a new service for
> fbguard.exe? How this new fbguard instance will know wich fbserver is
> the one it should guard? It just verify from times to times if there
> is a fbserver alive on the port specified at firebird.conf?
needed.
What the guardian does, is re-starting Firebird if it fails. Now, there
are two things to remember:
1 - the database service shouldn't crash.
2 - Win2K and up already have a mechanism in the ServicesAPI to
tell Windows to automatically restart the service. Use that instead.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com