13.4 Controlling the Database Server

Table of Contents Previous Next


13 Database Management : 13.4 Controlling the Database Server

You can use your platform-specific service controller to control a Postgres database. The service name of the database server in an Ark cluster is clouddb.
If your cluster resides on CentOS version 7.x, you can use the systemctl command to control the service. The systemctl command must be in your search path and must be invoked with superuser privileges. To use the command, open a command line, and enter:
systemctl action clouddb
Where action specifies the action taken by the service command. Specify:
status to discover the current status of the service.
start to start the service.
stop to stop the service.
restart to stop and then start the service.
On CentOS version 6.x, you can control a service at the command line with the service command. The Linux service controller mechanism allows you to start and stop the server gracefully. The command must be in your search path and must be invoked with superuser privileges. Open a command line, and issue the command:
Where action specifies the action taken by the service command. Specify:
status to discover the current status of the service.
start to start the service.
stop to stop the service.
condstop to stop the service without displaying a notice if the server is already stopped.
restart to stop and then start the service.
condrestart to restart the service without displaying a notice if the server is already stopped.
try-restart to restart the service without displaying a notice if the server is already stopped.

13 Database Management : 13.4 Controlling the Database Server

Table of Contents Previous Next