# P4MASTER_ID is server.id of Master for this instance export P4MASTER_ID=MASTER_NAME # This is the DNS name of the master server: export P4MASTER=REPL_DNSNAME # The setting below should be ssl: if this instance uses ssl. export SSL_PREFIX=REPL_SSLPREFIX HOSTIP=REPL_HOSTIP export P4PORTNUM=REPL_P4PORT export P4MASTERPORT=${SSL_PREFIX}${P4MASTER}:${P4PORTNUM} export P4PORT=${SSL_PREFIX}${HOSTIP}:${P4PORTNUM} # Added P4DPORT to allow the server to start without the IP address export P4DPORT=${SSL_PREFIX}${P4PORTNUM} export P4BROKERPORTNUM=REPL_P4BROKERPORT export P4BROKERPORT=${SSL_PREFIX}${P4BROKERPORTNUM} export P4D_FLAGS="-p $P4DPORT -r $P4ROOT -J $P4JOURNAL -L $P4LOG -q -d" export PROXY_TARGET=${SSL_PREFIX}${P4MASTER}:${P4PORTNUM} export PROXY_PORT=$P4PORT # SERVERID is defined in /p4/n/root/server.id. It will be unset on a server # that is not running a p4d process, such as a proxy server host. if [[ -n "$SERVERID" && "$SERVERID" != "$P4MASTER_ID" ]]; then export P4REPLICA=TRUE else export P4REPLICA=FALSE fi # P4Web settings: export P4WEBBIN=${P4HOME}/bin/p4web_${SDP_INSTANCE} export P4WEBLOG=${P4HOME}/logs/p4web.log export P4WEBPORT=REPL_P4WEBPORT # Authenticated Browse only mode: export P4WEBARGS="-B -p $P4PORT -w $P4WEBPORT -U $OSUSER -L $P4WEBLOG" # P4DTG Settings: export P4DTG_CFG=$P4SERVER # P4FTP settings: export P4FTPPORT=REPL_P4FTPPORT export P4FTPBIN=${P4HOME}/bin/p4ftpd_${SDP_INSTANCE} export P4FTPLOG=${P4HOME}/logs/ftp.log export P4FTPARGS="-d -l $P4FTPPORT -p $P4PORT -u $OSUSER -L $P4FTPLOG" # Set SHAREDDATA=TRUE on replica servers that share their /depotdata # volume with their P4TARGET server. export SHAREDDATA=REPL_SHAREDDATA # Override P4TICKETS and P4TRUST for replicas. if [[ -n "$SERVERID" && "$SERVERID" != "$P4MASTER_ID" ]]; then export P4TICKETS=$P4HOME/.p4tickets.$SERVERID export P4TRUST=$P4HOME/.p4trust.$SERVERID fi umask 0026