8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:43:02 +01:00

Allow running engine in superclassic mode on Windows as the service.

This also changes the behavior of -d switch. To run superclassic
engine as application please now invoke fb_inet_server with both -d and -a switches.
This commit is contained in:
skidder 2008-03-15 19:12:20 +00:00
parent f1892fd6a2
commit 6ef7cd1e30
3 changed files with 10 additions and 2 deletions

View File

@ -467,7 +467,7 @@ static HANDLE parse_args(LPCSTR lpszArgs, USHORT* pserver_flag)
break;
case 'D':
*pserver_flag |= (SRVR_debug | SRVR_non_service);
*pserver_flag |= SRVR_debug;
break;
#ifndef SUPERSERVER

View File

@ -68,6 +68,7 @@ const USHORT HIGH_PRIORITY = 2;
// sw_arch
const USHORT ARCH_SS = 0;
const USHORT ARCH_CS = 1;
const USHORT ARCH_SCS = 2;
// sw_client
const USHORT CLIENT_NONE = 0;

View File

@ -178,6 +178,10 @@ int CLIB_ROUTINE main( int argc, char **argv)
case 'C':
sw_arch = ARCH_CS;
break;
case 'M':
sw_arch = ARCH_SCS;
break;
case 'L':
if (++argv < end)
@ -326,6 +330,9 @@ int CLIB_ROUTINE main( int argc, char **argv)
else
switches.printf("-s %s", instance);
if (sw_arch == ARCH_SCS)
switches += " -d";
switch (sw_command)
{
case COMMAND_INSTALL:
@ -761,7 +768,7 @@ static void usage_exit(void)
*
**************************************/
printf("\nUsage:\n");
printf(" instsvc i[nstall] [ -s[uperserver]* | -c[lassic] ]\n");
printf(" instsvc i[nstall] [ -s[uperserver]* | -c[lassic] | -m[ultithreaded] ]\n");
printf(" [ -a[uto]* | -d[emand] ]\n");
printf(" [ -g[uardian] ]\n");
printf(" [ -l[ogin] username [password] ]\n");