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 # P4MASTER_ID is server.id of Master for this instance export P4MASTER_ID=REPL_MASTER_ID # This is the DNS name of the master server export P4MASTERHOST=REPL_DNSNAME # Moved these here to allow for server specific port values # The setting below should be ssl: if this instance uses ssl. export SSL_PREFIX=REPL_SSLPREFIX export P4PORTNUM=REPL_P4PORT export P4PORT=${SSL_PREFIX}$(hostname):${P4PORTNUM} export P4SVRPORT=${SSL_PREFIX}${P4PORTNUM} # Set the value for P4BROKERPORT to Unset if the broker is not # used. export P4BROKERPORTNUM=REPL_P4BROKERPORT export P4BROKERPORT=${SSL_PREFIX}${P4BROKERPORTNUM} # 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