To make the administration of the Server under UNIX system-based OS easier, administrator is provided with variables which reside in the script file stored in the following folder:
•For Linux OS: /etc/init.d/drwcsd. •For FreeBSD OS: /usr/local/etc/rc.d/drwcsd (symbolic link to the /usr/local/etc/drweb.com/software/init.d/drwcsd). Correspondence between variables and command switches for the drwcsd is described in the Table H-1.
Table Н-1.
Switch
|
Variable
|
Default parameters
|
-home
|
DRWCS_HOME
|
•/usr/local/drwcs—for FreeBSD OS, •/opt/drwcs—for Linux OS. |
-var-root
|
DRWCS_VAR
|
•/var/drwcs—for FreeBSD OS, •/var/opt/drwcs—for Linux OS. |
-etc
|
DRWCS_ETC
|
$DRWCS_VAR/etc
|
-rotate
|
DRWCS_ROT
|
10,10m
|
-verbosity
|
DRWCS_LEV
|
trace3
|
-log
|
DRWCS_LOG
|
$DRWCS_VAR/log/drwcsd.log
|
-conf
|
DRWCS_CFG
|
$DRWCS_ETC/drwcsd.conf
|
-pid
|
DRWCS_PID
|
|
-user
|
DRWCS_USER
|
|
-group
|
DRWCS_GROUP
|
|
-hooks
|
DRWCS_HOOKS
|
|
-trace
|
DRWCS_TRACE
|
|
|
DRWCS_HOOKS and DRWCS_TRACE variables do not have any parameters. If variables have been defined, corresponding switches will be added during the script execution. If variables have not been defined, switches will not be added.
|
Other variables are described in the Table H-2.
Table Н-2.
Variables
|
Default parameters
|
Description
|
DRWCS_ADDOPT
|
|
|
DRWCS_CORE
|
unlimited
|
The core file maximal size.
|
DRWCS_FILES
|
8192
|
The maximal number of file descriptors, that the Server is able to open.
|
DRWCS_BIN
|
$DRWCS_HOME/bin
|
The directory to start the drwcsd from.
|
DRWCS_LIB
|
$DRWCS_HOME/lib
|
The directory with Server libraries.
|
Default values of parameters will be used, if these variables have not been defined in the drwcsd script.
|
DRWCS_HOME, DRWCS_VAR, DRWCS_ETC, DRWCS_USER, DRWCS_GROUP, DRWCS_HOOKS variables are already defined in the drwcsd script file.
If the ${TGT_ES_ETC}/common.conf file exists, this file will be included to the drwcsd, that could redefine some variables, but if they are not exported (using the export command), they will not take any effect.
|
To set variables, do the following:
1.Add variable definition to the drwcsd script file. 2.Export this variable using the export command (at the same place). 3.When one more process will be run from this script, this process will read values that have been set.
|