Subject Re: [firebird-support] problem using shutdown script
Author Helen Borrie
At 02:03 PM 29/10/2004 +0000, you wrote:

>Issue #1
>In Linux we use the script ./fbmgr -shut -username user -password to
>shutdown the database server. This works only when the database server
>is started using the default port 3050. If this is changed, then the
>shutdown script throws the following error. Please help. Is the
>default port hard coded ?

I don't think so.
Check the port entry in your /etc/services file. The installer will have
written it as

gds_db 3050/tcp # Firebird SQL Database Remote Protocol

You'll need to change that to the correct port.

>-Failed to establish a connection.
>-Connection refused
>can not attach to server
>Issue #2
>What is the shutdown script to be used for windows ?

If you are running FB as a service, study the document README.instsvc (in
the \doc directory). There's no "script". You can install a Control Panel
applet. You can also use the NET STOP FirebirdServerDefaultInstance
command from the command line to shut down the server service or, if
Guardian is running, NET STOP FirebirdGuardianDefaultInstanceto shut down

If you are running it as an application, I don't know of any way to stop it
from the command line. You need to log out and log in again, or use the
Guardian tray icon utility.

As a rule, you should be very loath to stop the server
arbitrarily. Databases should be shut down first; otherwise users' pending
work could be lost.