Start and Stop SQLFire Servers Using sqlf

Use the sqlf utility to start servers.

You generally start a SQLFire server with the sqlf server command from a command prompt or terminal window. If you need to initialize other resources before booting SQLFire servers, you can start a server process from within a Java application with the FabricServer interface. See Starting SQLFire Servers with the FabricServer Interface for more information about starting servers programmatically.

Note: If you use peer clients in a SQLFire distributed system that also contains data stores, keep in mind that peer clients themselves cannot use disk stores to persist data. You must start data stores and locators before starting peer clients, because peer clients rely on those members to persist data. See Peer Client Considerations for Persistent Data for more information.

Start SQLFire Servers

By default, the sqlf server command starts a server that can host data and provide connectivity to thin client applications. The complete syntax for starting a SQLFire server with sqlf server is:
sqlf server start [-Jjvm_argument]* [-dir=working_directory] [-classpath=classpath]
      [-maxHeap=size] [-initialHeap=size]
      [-configScripts=sql-files] [-initScripts=sql-files]
      [-mcast-port=<port> (default 10334)]
      [-mcast-address=<address> (default]
      [-locators=<addresses>] [-start-locator=<address>]
      [-host-data=<true|false> (default true)]
      [-user=<username>] [-password[=<password>]]
      [-log-file=<path> (default sqlfserver.log)]

The sqlf server command uses default values for any options that you do not specify on the command line. However in most cases you will want to specify non-default values for each server that you start. The sections that follow describe some of the most commonly-used options and configuration properties.

Stop SQLFire Servers

You can use two additional command forms to stop a running SQLFire server or display the status and process ID of a running server:
sqlf server stop [-dir=working_directory]

sqlf server status [-dir=working_directory]