Subject Re: [firebird-support] Shutting donw fbserver programmatically
Author Paul Reeves
On Monday 31 May 2004 14:32, Nando Dessena wrote:
> P> The next step is to take whatever action is
> P> needed to kill the server - this is platform dependant.
>
> Yep - and this I believe differs between applications and services. If
> I issue NET STOP Firebird, or equivalent StopService() API call, I
> know that the Firebird service has a chance to terminate gracefully.

Er - no. This is an O/S level api call and I don't believe it does a check
to see what the service is actually doing. Similarly, the code behind
instsvc just makes the relevant O/S level api calls. It doesn't check
whether there are connections. So, there is no functional difference
between this and killing a process (at least as far as Firebird is
concerned.)

Of course, this is wrong behaviour, but it is how it has been since IB5
(and probably continues in recent versions of IB.)


Paul
--
Paul Reeves
http://www.ibphoenix.com
Supporting users of Firebird and InterBase