Subject RE: [firebird-support] Start/Stop FB from a program
Author Alan McDonald
> Hi!
>
> How should I start FB server on windows as an application from
> another (delphi) application?
>
> WinExec?, ShellExecute?, CreateProcess?
>
> And how to shutdown server safely from the same application?
> TerminateProcess seems to be able to do this but it seems to be too
> harsh.
>
> thanks in advance!
>
> Aivar

If your application is the only process wishing to partake in the service,
then I would recommend you think about using the embedded server. When you
application opens, the server comes alive, when it closes, the server
closes.
If there are other applications wishing to avail themselves of the service
then your application shutting it down will be pretty tough on those other
people connected.
Alan