3.5 Configuring a Package Installation

Table of Contents Previous Next


3 Using a Package Manager to Install Advanced Server : 3.5 Configuring a Package Installation

On a CentOS or RedHat version 6.x host, the service configuration file is named edb-as-9.6.sysconfig and resides in /etc/sysconfig/edb/as9.6.
PGENGINE specifies the location of the engine and utility executable files.
PGPORT specifies the listener port for the database server.
PGDATA specifies the path to the data directory.
PGLOG specifies the location of the log file to which the server writes startup information.
Use INITDBOPTS to specify any initdb option or options that you wish to apply to the new cluster.
You can modify the edb-as-9.6.sysconfig file before invoking the startup script to change the listener port, data directory location, startup log location or installation mode. Note that if you plan to create more than one instance on the same system, you may wish to copy the edb-as-9.6.sysconfig file (and the associated edb-as-9.6 startup script) and modify the file contents for each additional instance that resides on the same host.
Please note that the options specified in the service configuration file are only enforced if initdb is invoked via the service command; if you manually invoke initdb (at the command line), you must specify the other options (such as the location of the data directory and installation mode) on the command line.
On a CentOS or RedHat version 7.x host, the unit file is named edb-as-9.6.service and resides in /usr/lib/systemd/system. The unit file contains references to the location of the Advanced Server data directory. You should avoid making any modifications directly to the unit file because it may be overwritten during package upgrades.
By default, data files reside under /var/lib/edb/as9.6/data directory. To use a data directory that resides in a non-default location, create a copy of the unit file under the /etc directory:
After copying the unit file to the new location, modify the service file (/etc/systemd/system/edb-as-9.6.service) with your editor of choice, correcting any required paths.
Then, use the following command to reload systemd, updating the modified service scripts:

3 Using a Package Manager to Install Advanced Server : 3.5 Configuring a Package Installation

Table of Contents Previous Next