Note: edbstart and edbstop functionality
is supported only on Linux hosts that are running Advanced Server installations performed with the Interactive installer. RPM installations do not support edbstart
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
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:
Edit the edbtab
file, (shown in Figure 5.1) specifying a list of the Advanced Server clusters that the edbstart
programs will control, and an indicator that designates if the cluster should be automatically started and stopped.
Figure 5.1 — The sample edbtab file.
file entry should take the form:
specifies the home directory of the Advanced Server installation that the edbstart
utilities will control.
specifies the data directory of the database cluster that the edbstart
utilities will control. edb_data_directory
is the same as the value of $PGDATA
for a specified cluster.
specifies that edbstart
should control the service; N
specifies that the user will control the service manually.
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
scripts to $EDBHOME
. Make the scripts executable with the following command:
Enable the edb_autostart
service with the commands:
You can use edbstart
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: