#  file : imedmgr crontab
#
#  purpose : IME maintenance jobs to run under cron for imedmgr
#  
#  hisstory : 
#    01/feb/2011 - creation date (IME section from root cron on AGLF12)
#    29/nov/2011 - stop/start GCMS using 'sudo' so servers run under root
#    22/mar/2012 - delete explicit stop/start GCMS;  GCMS is on LINUX
#    12/sep/2012 - push UpdtStats start time back to 05:50
#

#


# ------------- START IME TASKS   ------------------

# Clear log files.
# Runs on the 15th of the month at 11:01 PM
1 23 15 * * sh /home/imedmgr/bin/clearLogs.sh > /home/imedmgr/bin/clearLogs_`/home/imedmgr/bin/getBaseNameComputer.sh`.log 2>&1


# ****  The following jobs run weekly  ****

# MySQL Update Statistics for IME DB
# Runs at 05:30 AM on Sundays to avoid LFS and ASA working hours
50 5 * * 0 sh /home/imedmgr/bin/UpdtStats.sh > /home/imedmgr/bin/UpdtStats_`/home/imedmgr/bin/getBaseNameComputer.sh`.log 2>&1

# the shell script stops the IME extract_server, copies logfiles, and
#   starts the IME extract_server
# Runs every Saturday at 11:30 PM.
30 23 * * 6 sh /home/imedmgr/bin/copyExtractServerLog.sh >> /home/imedmgr/bin/copyExtractServerLog.log 2>&1

# ****  The following jobs run daily   ****

# Run online backup of all dbs in ProductLine.ini
20 5 * * * sh /home/imedmgr/bin/OnlineBackup.sh > /home/imedmgr/bin/OnlineBackup.log 2>&1

# TEMPORARY;  stop and restart common to release thread resources; comment out 18/apr/2012
# 30 18 * * * sh /home/imedmgr/bin/RestartCommon.sh > /home/imedmgr/bin/RestartCommon.log 2>&1

40 10 * * 1 lp -h localhost /home/imedmgr/rowCount.txt
