#------------------------------------------------------------------------------ # Instance specific variables set/calculated in this file. This is not # intended to be sourced directly. It is sourced when /p4/common/bin/p4_vars # is sourced. # Disable shellcheck requirement for shebang line, as this file is sourced # in (from p4_vars) rather than executed as a script. # shellcheck disable=SC2148 # This file is processed by mkdirs.sh to update REPL_* values as appropriate. # It can subsequently be edited if required. # Various scripts send email to $MAILTO. This can contain comma-delimited list # of email addresses (no spaces). export MAILTO=REPL_MAILTO # Specify the email adddress from which emails are sent in $MAILFROM. # This must be exactly one email address. export MAILFROM=REPL_MAILFROM export OSUSER=REPL_OSUSER export P4USER=REPL_ADMINUSER export P4SERVICEUSER=svc_${SERVERID} # Default this to OSUSER. You can set this if your Master server uses a different OSUSER than the replica." export RSYNCUSER=$OSUSER source /p4/common/config/${SERVERID}.vars # These $P4D_FLAGS show when using 'ps' to scan the process table. # Other settings affect p4d. export P4D_FLAGS="-p $P4SVRPORT -r $P4ROOT -J $P4JOURNAL -L $P4LOG -q -d --pid-file" export P4MASTERPORT=${SSL_PREFIX}${P4MASTERHOST}:${P4PORTNUM} export SHAREDDATA=REPL_SHAREDDATA # SERVERID is defined in /p4/n/root/server.id. if [[ -n "$SERVERID" && "$SERVERID" != "$P4MASTER_ID" ]]; then export P4REPLICA=TRUE else export P4REPLICA=FALSE fi # Proxy settings. export PROXY_TARGET=$P4MASTERPORT export PROXY_PORT=$P4PORT # P4DTG Settings: export P4DTG_CFG=$P4SERVER umask 0026