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

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.
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.
The edbtab file entry should take the form:
edb_home directory:edb_data_directory:N|Y
edb_home_directory specifies the home directory of the Advanced Server installation that the edbstart/edbstop utilities will control.
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 the edbstart and edbstop utilities.
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:
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