crontab.template #1

  • //
  • guest/
  • trina/
  • sdp/
  • main/
  • Server/
  • Unix/
  • p4/
  • common/
  • etc/
  • cron.d/
  • crontab.template
  • View
  • Commits
  • Open Download .zip Download (811 B)
MAILTO=REPL_MAILTO
MAILFROM=REPL_MAILFROM
PATH=/p4/common/bin:/p4/1/bin:/p4/2/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:
SHELL=/bin/bash

# common tasks

INSTANCE=1
# Verify
5 4 * * 6 [ -e /p4/common/bin ] && /p4/common/bin/p4verify.sh ${INSTANCE}

# Update the limits group to make sure all users are listed in it.
*/60 * * * * [ -e /p4/common/bin ] && /p4/common/bin/update_limits.py ${INSTANCE}

# Checkpoints
5 2 * * 6 [ -e /p4/common/bin ] && /p4/common/bin/rotate_journal.sh ${INSTANCE}
5 3 * * 6 [ -e /p4/common/bin ] && /p4/common/bin/weekly_backup.sh ${INSTANCE}
5 3 * * 0-5 [ -e /p4/common/bin ] && /p4/common/bin/daily_backup.sh ${INSTANCE}

# p4review daemon
*/5 * * * * [ -e /p4/common/bin ] && /p4/common/bin/p4master_run ${INSTANCE} /p4/common/bin/p4review.py ${INSTANCE}

# Change User Description Committed
#1 19278 trina "Forking branch Main of perforce-software-sdp to trina-sdp."
//guest/perforce_software/sdp/main/Server/Unix/p4/common/etc/cron.d/crontab.template
#6 18961 C. Thomas Tyler Released: SDP/MultiArch/2016.1/18958 (2016/04/08).
#5 12346 Russell C. Jackson (Rusty) Added p4master_run back to call to p4review.py since it needs P4PORT from the environment.
#4 12171 Russell C. Jackson (Rusty) Merge in changes to remove the need for p4master_run.
#3 11719 adrian_waters Make 'directory-existance' check consistent between cron entries : some used /p4/common/bin, others used /p4/${INSTANCE}/bin;  changed all to common/bin
#2 11570 Russell C. Jackson (Rusty) Brought in changes from Mark Foundry to add -S $MAILFROM to mail commands.

 Changed sync_replica.sh and weekly_sync_replica.sh to use $LOGFILE for consistency.

 Added mail command to both files as well.
#1 10148 C. Thomas Tyler Promoted the Perforce Server Deployment Package to The Workshop.