5.2.4 Using the edbstart and edbstop Utilities

Table of Contents Previous Next


5 Managing an Advanced Server Installation : 5.2 Controlling a Service on Linux : 5.2.4 Using the edbstart and edbstop Utilities

Note: edbstartedbstop functionality is supported only on Linux hosts that are running Advanced Server installations performed with the Interactive installer. RPM installations do not support edbstart and edbstop.
While the autostart scripts created during an Advanced Server installation control a single database cluster, the edbstart and edbstop utilities can control multiple database clusters on the same host, with a single configuration file.
The edbstart and edbstop utilities use a file named edbtab (described below) to determine which instances of Advanced Server should start when the operating system boots, and stop when the host is shut down.
Before using the edbstart or edbstop utilities, you should disable the Advanced Server autostart scripts. The commands that disable the scripts are platform specific; open a command line, assume superuser privileges and enter the command:
After disabling the Advanced Server service, use an editor to create a file named edbtab in the /etc directory, or copy the sample file located in:
Edit the edbtab file, (shown in Figure 5.1) specifying a list of the Advanced Server clusters that the edbstart and edbstop programs will control, and an indicator that designates if the cluster should be automatically started and stopped.

C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\eda12345\two.png
Figure 5.1 — The sample edbtab file.
The edbtab file entry should take the form:
edb_home directory:edb_data_directory:[Y|N]
edb_home_directory specifies the home directory of the Advanced Server installation that the edbstart/edbstop utilities will control.
EDB_data_directory
EDB_data_directory specifies the data directory of the database cluster that the edbstart/edbstop utilities will control. edb_data_directory is the same as the value of $PGDATA for a specified cluster.
Y specifies that edbstart and edbstop should control the service; N specifies that the user will control the service manually.
Include a separate entry in the edbtab file for each Advanced Server cluster that you wish to control with edbstart and edbstop.
After editing the edbtab file, copy the edb_autostart script to /etc/init.d. By default, the edb_autostart script is located in:
Copy the edbstart and edbstop scripts to $EDBHOME. Make the scripts executable with the following command:
Enable the edb_autostart service with the commands:
You can use edbstart and edbstop at the command line to manually control all of the clusters specified in the edbtab file, or to control an individual cluster. Call edbstart without an argument to start all of the clusters listed within the edbtab file; invoke edbstop without an argument to stop all of the clusters listed in the edbtab file. You can control an individual cluster by specifying the cluster's data directory as an argument. The following command starts a cluster:

5 Managing an Advanced Server Installation : 5.2 Controlling a Service on Linux : 5.2.4 Using the edbstart and edbstop Utilities

Table of Contents Previous Next