Starting and stopping High Availability Controller
Before you can start the solidDB High Availability Controller (HAC), you must have a solidhac.ini configuration file in the HAC working directory, see HotStandby with HAC quick start procedure for a short description of configuring HAC.
Note Depending on the platform you are using, the HAC binary is named either solidhac, or solidhac.exe. In the examples, solidhac.exe is used for clarity. Similarly, the name of the sample solidDB start script is either start_solid.sh, or start_solid.bat. In the examples, start_solid.bat is used.
Starting HAC
The syntax for starting HAC is:
solidhac.exe [-cworking_directory | -?]
The ? argument, or any other argument except -c prints the usage message.
When HAC starts, it starts to listen to the port specified in the HAController.Listen parameter in the solidhac.ini configuration file. The port is used, for example, for transporting commands between HAC and the HAManager, and for running HAC-specific administration commands.
Stopping HAC
To stop the HAC, you must first connect to the HAC by specifying the port that is defined with the HAController.Listen parameter in the solidhac.ini configuration file. For example, you can use solsql or the ODBC interface to connect to HAC.
You can stop (terminate) HAC by running the following command:
ADMIN COMMAND 'hacontroller shutdown'
Example: Starting HAC
If solidhac.exe is located in c:\solid\hac, which is also the current directory, and you use c:\solid\run\server1 as the working directory for the HAC, you start the HAC by running the following command: