MAILTO=REPL_MAILTO MAILFROM=REPL_MAILFROM PATH=/p4/common/bin:/p4/REPL_INSTANCE/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin: SHELL=/bin/bash # Common tasks INSTANCE=REPL_INSTANCE #------------------------------------------------------------------------------ # Tasks for Master Server # Checkpoints 5 2 * * * [ -e /p4/common/bin ] && /p4/common/bin/run_if_master.sh ${INSTANCE} /p4/common/bin/daily_checkpoint.sh ${INSTANCE} # Update the limits group to make sure all users are listed in it. This group # should have Max* settings enabled. */60 * * * * [ -e /p4/common/bin ] && /p4/common/bin/run_if_master.sh ${INSTANCE} /p4/common/bin/update_limits.py ${INSTANCE} # Archive File Verification 5 4 * * 6 [ -e /p4/common/bin ] && /p4/common/bin/run_if_master.sh ${INSTANCE} /p4/common/bin/p4verify.sh ${INSTANCE} # p4review daemon. This is obsolete when Helix Swarm is used with the # 'honor_p4_reviews' setting set to true. See: # https://www.perforce.com/manuals/swarm/Content/Swarm/admin.notifications.html # */5 * * * * [ -e /p4/common/bin ] && /p4/common/bin/run_if_master.sh ${INSTANCE} /p4/common/bin/p4review.py ${INSTANCE} #------------------------------------------------------------------------------ # Tasks for Edge Servers # Checkpoints 35 2 * * * [ -e /p4/common/bin ] && /p4/common/bin/run_if_edge.sh ${INSTANCE} /p4/common/bin/daily_checkpoint.sh ${INSTANCE} # Replication Status Check 0 8 * * * [ -e /p4/common/bin ] && /p4/common/bin/run_if_edge.sh ${INSTANCE} /p4/common/bin/replica_status.sh ${INSTANCE} > /dev/null #------------------------------------------------------------------------------ # Tasks for Replica Servers # Archive File Verification 5 6 * * 6 [ -e /p4/common/bin ] && /p4/common/bin/run_if_replica.sh ${INSTANCE} /p4/common/bin/p4verify.sh ${INSTANCE} # Keep /p4/N/checkpoints in sync with master, and maintain offline_db. # Best used for unfiltered replicas. 0 8 * * 0-6 [ -e /p4/common/bin ] && /p4/common/bin/run_if_replica.sh ${INSTANCE} /p4/common/bin/sync_replica.sh ${INSTANCE} # If you can't run the scripts above due to rsync issues (such as lack of # ability to SSH from the replica to the maseter for replicas in a DMZ), # then run this one instead. # 0 5 * * 0-5 [ -e /p4/common/bin ] && /p4/common/bin/run_if_replica.sh ${INSTANCE} /p4/common/bin/replica_cleanup.sh ${INSTANCE} # Replication Status 0 8 * * * [ -e /p4/common/bin ] && /p4/common/bin/run_if_replica.sh ${INSTANCE} /p4/common/bin/replica_status.sh ${INSTANCE} > /dev/null