Re: [firebird-support] Start/Stopping service

2019-04-19 Thread m_brahi...@yahoo.fr [firebird-support]
>Guessing that you installed the Fb service with a non-default service
>name - "FirebirdServerfirebird3" - because you have another version of
>Firebird running on the same host machine and you want to call instsvc
>from your application to check the status of the Fb3 server process...

Yes I had an old version (FB2) that I uninstalled before maybe not completly.

>I don't know whether this answers your question, though.
Yours answers it's enough for me thank you very much Helen

Re: [firebird-support] Start/Stopping service

2019-04-19 Thread m_brahi...@yahoo.fr [firebird-support]
Thanks Mark

Re: [firebird-support] Start/Stopping service

2019-04-19 Thread Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
On 19-4-2019 13:44, m_brahi...@yahoo.fr [firebird-support] wrote:
> 
> 
> <>
> It is my case I have "FirebirdServerfirebird3" on XP pro
> 
> It means that when I install Firebird3 for the first time without having 
> older FB version on my machine the service name will be 
> "FirebirdServerDefaultInstance" in all windows version ?
> If having installed older FB version the service name wil be 
> "FirebirdServerfirebird3" ? because it is my case althoug ht I 
> uninstalled old version (FB2) maybe not completely uninstalled ?

As far as I know the Windows will install it with the default name, so 
not with 'Firebird 3' in the name, but I haven't used the installer in a 
while.

Mark
-- 
Mark Rotteveel


Re: [firebird-support] Start/Stopping service

2019-04-19 Thread Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
On 18-4-2019 16:34, m_brahi...@yahoo.fr [firebird-support] wrote:
> Thank you for answer,
> 
> Yes the service is present in Local Services and the file executable 
> file in the area  is C:\Firebird\Firebird_3_0\firebird.exe -s firebird3
> anyway I have no problem with managing service to access my application 
> but I don't know if it is correct firebird.exe instead of instsvc in the 
> service path area.
> So I need to know please If the service name "FirebirdServerfirebird3" 
> is always the same in any windows version because I must manage FB 
> service within delphi routine like checking service status, start, stop.

The default name of the service is "Firebird Server - DefaultInstance" 
(or "FirebirdServerDefaultInstance"), so no, the name will not always be 
"FirebirdServerfirebird3".

The path of the service points to the firebird.exe because that is the 
server executable. instsvc is only a tool to install the service 
(instsvc => INSTall SerViCe)

Mark
-- 
Mark Rotteveel


Re: [firebird-support] Start/Stopping service

2019-04-18 Thread Helen Borrie hele...@tpg.com.au [firebird-support]
Hello m_brahi...@yahoo.fr,

> Thank you for answer,

> Yes the service is present in Local Services and the file
> executable file in the area  is
> C:\Firebird\Firebird_3_0\firebird.exe -s firebird3 
> anyway I have no problem with managing service to access my
> application but I don't know if it is correct firebird.exe instead
> of instsvc in the service path area.
>
I don't understand what you wrote there regarding 'instsvc in the
service path area'.  The service will execute the server process from
the installed path C:\Firebird\Firebird_3_0\firebird.exe -s.

> So I need to know please If the service name
> "FirebirdServerfirebird3" is always the same in any windows version
> because I must manage FB service within delphi routine like checking service 
> status, start, stop.

Guessing that you installed the Fb service with a non-default service
name - "FirebirdServerfirebird3" - because you have another version of
Firebird running on the same host machine and you want to call instsvc
from your application to check the status of the Fb3 server process...

to ensure that it runs the correct version if instsvc for the
installed Fb3 process, your application will need to use the full path
C:\Firebird\Firebird_3_0\instsvc.exe with the desired switches.  Maybe
your problems arose from depending on the PATH variable that was
pointing to an older version of instsvc.exe.

Because instsvc requires 'Run as Adminstrator' you will want the
required Windows API call in your application.  But I guess you have
already done that in the past.

Apart from the progressively stricter access permissions in Windows
versions newer than XP, I don't know of any reason for differences
between different Windows versions if the service was configured the
same way on each server.  Of course, we are talking about the
Professional versions, not Home, etc., that do not support services.

I don't know whether this answers your question, though.

Helen


---
This email has been checked for viruses by AVG.
https://www.avg.com



Re: [firebird-support] Start/Stopping service

2019-04-18 Thread m_brahi...@yahoo.fr [firebird-support]
Thank you for answer,

Yes the service is present in Local Services and the file executable file in 
the area  is C:\Firebird\Firebird_3_0\firebird.exe -s firebird3 
anyway I have no problem with managing service to access my application but I 
don't know if it is correct firebird.exe instead of instsvc in the service path 
area.  So I need to know please If the service name "FirebirdServerfirebird3" 
is always the same in any windows version because I must manage FB service 
within delphi routine like checking service status, start, stop.

Thanks


Re: [firebird-support] Start/Stopping service

2019-04-18 Thread Helen Borrie hele...@tpg.com.au [firebird-support]
Hello m_brahi...@yahoo.fr,

> I am using Firebird-3.0.3.32900_0_Win32.exe on XP when I try to
> start service in installed FB folder with
> C:\Firebird\Firebird_3_0>instsvc sta or instsvc sto
> I get that message

>  "Error occured during OpenService"
> The specified service doens't exists as installed service (sorry I had to 
> translate from french)
> Usually I start service from .bat file with net start "Firebird Server - 
> firebird3"

> Where is the problem please ?

It is not clear whether you actually have the Firebird server service
installed. Instsvc.exe *can* be used to start and stop the service but
it won't work if the service is not installed already.  In fact, if
you ran the Firebird-3.0.3.32900_0_Win32.exe kit, the installer would
have run instreg.exe and installed the service for you.

Check the Local Services (Services Locales?) with your administrative
tools to see if 'Firebird Server - DefaultInstance' is showing there.
You can right click on that entry to access the Properties of the
service. If you did the standard install, then the service name should
be 'FirebirdServerDefaultInstance'.  That is the argument you should
use with NET START and NET STOP.

"Run as Administrator" is required for these commands and/or for your
batch file, obviously.

Instsvc.exe is really needed only to i[nstall] or uninstall (r[emove])
the service.  It would be simpler just to use NET START | STOP in your
batch file.

If you want to have Fb3 with a non-default service name, you can use
the -n[ame] argument with the i, r, sto and sta switches;  also with
NET START | STOP.  For example, this installs superserver in "manual"
mode with your non-default service name.

instsvc i -s -d -n "FirebirdServer - firebird3"

(you don't need the double-quotes if the name has no spaces.)

Helen


---
This email has been checked for viruses by AVG.
https://www.avg.com



ODP: [firebird-support] Start/Stopping service

2019-04-17 Thread Karol Bieniaszewski liviusliv...@poczta.onet.pl [firebird-support]
>> "Error occured during OpenService"
>>>The specified service doens't exists as installed service (sorry I had to 
>>>translate from french)

Run it as Windows admin

Regards,
Karol Bieniaszewski 


[firebird-support] Start/Stopping service

2019-04-17 Thread m_brahi...@yahoo.fr [firebird-support]
Hello,

I am using Firebird-3.0.3.32900_0_Win32.exe on XP when I try to start service 
in installed FB folder with C:\Firebird\Firebird_3_0>instsvc sta or instsvc sto
I get that message

 "Error occured during OpenService"
The specified service doens't exists as installed service (sorry I had to 
translate from french)
Usually I start service from .bat file with net start "Firebird Server - 
firebird3"

Where is the problem please ?