When it starts, the AccuRev Server program reads configuration file
acserver.cnf, located in the AccuRev executables directory. This configuration file is generated during installation, but can be edited manually thereafter.
The MASTER_SERVER name should be the fully-qualified name of the server machine, including a domain name and Internet extension. Using just the server name may work in most situations, but fully-qualified is preferred. Alternatively, you can use the IP address of the server machine.
The PORT setting contains the port that the AccuRev Server is available on.
The SITE_SLICE_LOC setting points to the directory that the Server uses for storing repository-wide AccuWork data, workflow configuration data, server preferences, and triggers. This directory:
The DEPOTS_DEFAULT setting points to the directory that the Server uses for new depots, for storing the files created when a permanent copy of a version is created with the
keep command. Note that if you move an existing depot, this variable is not used — you must tell AccuRev about the new location with
chslice.
When the AccuRev Server is started automatically (usually at system boot), it changes its user identity and group membership according to the
USER and
GROUP settings in the
acserver.cnf file. (See
Controlling Server Operation on page 17.)
With these settings commented out, the AccuRev Server runs under the identity of the user who started it.
In addition to having a user identity and group membership, the AccuRev Server has an AccuRev home directory. This directory is used for a variety of purposes — for example, to store a login session file created by a
server_admin_trig trigger script.
By default, the AccuRev home directory is the same as the operating-system home directory, as indicated by the environment variable
HOME. It’s a best practice to override the
HOME value by setting the value of environment variable
ACCUREV_HOME. If the AccuRev Server is started automatically at system startup time by a script in the “rc” or “init.d” directory, the most logical place to set the AccuRev home directory is in this startup script:
A successful user login creates a session that by default expires 4 hours (240 minutes) after the last AccuRev command is executed. You can change this behavior by creating or modifying this
acserver.cnf setting:
On UNIX/Linux systems, a user can control the timeout for an individual session by setting environment variable
SESSION_TIMEOUT before logging in. For example, to set a 15-minute timeout interval for a single session:
The following setting in acserver.cnf causes user sessions never to expire:
The AccuRev Server is a multi-threaded program, architected to support a maximum of 256 concurrent threads. To conserve system resources, you can specify a lower maximum in the
acserver.cnf file:
As it’s running, the AccuRev Server may reduce the maximum even further than the specified
MAX_THREADS level, depending on the available computing resources.
DB_DRIVER = PostgresDB_CONNECT = localhost:5075@accurev
DB_USER = acserver
DB_PASS = e8c5ed8f07bfaf44d2f2eebc215e3cf3
DB_HOME = C:\Program Files\AccuRev\postgresql