# 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 P4USER=REPL_ADMINUSER # P4MASTER_ID is server.id of Master for this instance export P4MASTER_ID=REPL_MASTER_ID # The setting below should be ssl: if this instance uses ssl. export SSL_PREFIX=REPL_SSLPREFIX export P4PORTNUM=REPL_P4PORT export P4PORT=${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 $P4PORT -r $P4ROOT -J $P4JOURNAL -L $P4LOG -q -d --pid-file" # 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. # Override P4TICKETS and P4TRUST for replicas. if [[ -n "$SERVERID" && "$SERVERID" != "$P4MASTER_ID" ]]; then export P4REPLICA=TRUE export P4SERVICEUSER=svc_${SERVERID} targetServerPort=$($P4DBIN -r $P4ROOT -cshow | egrep "^$SERVERID: P4TARGET = ") targetServerPort=${targetServerPort##* = } targetServerPort=$(echo $targetServerPort) if [[ -n "$targetServerPort" ]]; then export P4MASTERPORT=$targetServerPort if [[ "$targetServerPort" == *":"* ]]; then export P4MASTER=${targetServerPort%%:*} else export P4MASTER=REPL_DNSNAME fi else export P4MASTER=REPL_DNSNAME export P4MASTERPORT=${SSL_PREFIX}${P4MASTER}:${P4PORTNUM} fi # Set SHAREDDATA=TRUE on replica servers that share their /depotdata # volume with their P4TARGET server. repStyle=$($P4DBIN -r $P4ROOT -cshow|$GREP "^$SERVERID: lbr.replication = ") repStyle=${repStyle##* = } repStyle=$(echo $repStyle) if [[ $repStyle == "shared" ]]; then export SHAREDDATA=TRUE else export SHAREDDATA=FALSE fi else export P4REPLICA=FALSE export P4SERVICEUSER= # This is the DNS name of the master server: export P4MASTER=REPL_DNSNAME export SHAREDDATA=FALSE export P4MASTERPORT=${SSL_PREFIX}${P4MASTER}:${P4PORTNUM} fi # Proxy settings. export PROXY_TARGET=${SSL_PREFIX}${P4MASTER}:${P4PORTNUM} export PROXY_PORT=$P4PORT # 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" export SDP_ALWAYS_LOGIN=0 umask 0026