mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:03: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:
parent
f1892fd6a2
commit
6ef7cd1e30
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user