Subject | Re: problem using shutdown script |
---|---|
Author | crescendo_naz |
Post date | 2004-10-30T07:15:46Z |
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
This is the cause for the problem as it is not inside my application
scope. Since I am starting firebird as an application I can use any
port as fbserver takes port as an argument. Similarly if the shutdown
script fbmgr -shut can also take port as an argument and stop, then
this will solve the problem. Any suggestions for this ?
it progmatically without any manual intervention. I can shutdown the
database using something like this,
gfix -shut -user <username> -password <password> <databasename>
This shutdown only the database and not the database server listening
in the port 3050. How do I solve this ? Please Help
Nazeem.
wrote:
> At 02:03 PM 29/10/2004 +0000, you wrote:to
>
>
>
> >Issue #1
> >
> >In Linux we use the script ./fbmgr -shut -username user -password
> >shutdown the database server. This works only when the databaseserver
> >is started using the default port 3050. If this is changed, thenthe
> >shutdown script throws the following error. Please help. Is thehave
> >default port hard coded ?
>
> I don't think so.
> Check the port entry in your /etc/services file. The installer will
> written it asYes, You are right. The default port 3050 is written at /etc/services.
>
> 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
This is the cause for the problem as it is not inside my application
scope. Since I am starting firebird as an application I can use any
port as fbserver takes port as an argument. Similarly if the shutdown
script fbmgr -shut can also take port as an argument and stop, then
this will solve the problem. Any suggestions for this ?
> >README.instsvc (in
> >Issue #2
> >What is the shutdown script to be used for windows ?
>
> If you are running FB as a service, study the document
> the \doc directory). There's no "script". You can install aControl 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 shutdown
> Guardian.stop it
>
> If you are running it as an application, I don't know of any way to
> from the command line. You need to log out and log in again, or usethe
> Guardian tray icon utility.pending
>
> As a rule, you should be very loath to stop the server
> arbitrarily. Databases should be shut down first; otherwise users'
> work could be lost.Yes, I am running the firebirddb as an application and I need to stop
it progmatically without any manual intervention. I can shutdown the
database using something like this,
gfix -shut -user <username> -password <password> <databasename>
This shutdown only the database and not the database server listening
in the port 3050. How do I solve this ? Please Help
>Regards,
> ./heLen
Nazeem.