# DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.7rN7abF9NC installed on Thu Feb 3 10:31:51 2005) # (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v 1.12.2.4 2001/06/16 03:18:37 peter Exp $) # # EIDS, QDM, EQNEWS, and REQS_* are all managed by this script # monitored programs are configured through # /home/quake/monitor/monitor.config # * * * * * $HOME/monitor/monitor.pl start > /dev/null 2>&1 # cache site index, not found pages, and eqinthenews pages as html # 10/26/09 -- EMM: Commented out while migrating. * * * * * /home/www/vhosts/earthquake/cron/cache.py > /dev/null 2>&1 */5 * * * * /home/quake/eqnews/bin/fixeqnews.pl > /dev/null 2>&1 # check for new CAP messages, also triggers CAP feed update when they arrive * * 1 * * (cd /home/quake/CAP && gzip -f get_CAP_alerts.log) > /dev/null 2>&1 * * * * * /home/quake/CAP/get_CAP_alerts.sh >> /home/quake/CAP/get_CAP_alerts.log 2>&1 ################################################################################ ## shakemap indexing and transfer # should only run on ehpmaster and ehpbackup # pull shakemaps from horst, graben, and mesa # this also triggers the shakemap indexer, which pushes shakemaps "on demand" * * * * * /home/www/vhosts/earthquake/cron/shakemap_pull.sh >>/home/www/vhosts/earthquake/cron/shakemap_pull.log 2>&1 # push shakemaps out to ehp1-4, in case something happens with indexer #11,26,41,56 * * * * /home/www/vhosts/earthquake/cron/push_shakemaps.sh > /dev/null 2>&1 ## end shakemap indexing ################################################################################ # Check that REQS programs are running and restart if not. # REPLACED BY monitor.pl above # -------------------------------------------------------- #10,30,50 * * * * $HOME/REQS/req_starter.sh $HOME/REQS/req2web.sh #12,32,52 * * * * $HOME/REQS_US/req_starter.sh $HOME/REQS_US/req2web.sh #14,34,54 * * * * $HOME/REQS_WW/req_starter.sh $HOME/REQS_WW/req2web.sh #16,36,56 * * * * $HOME/REQS_MYSQL/req_starter.sh $HOME/REQS_MYSQL/req2web.sh # Recenteqs to sections: (Simpson program to plot eqs to Hayward sections pages in EHZ internal website.) # run every 5 minutes 02,07,12,17,22,27,32,37,42,47,52,57 * * * * (cd $HOME/REQS_sections/; $HOME/REQS_sections/req_Sections.csh >> $HOME/REQS_sections/Logs/Section.log 2>&1 ) # rotate Section logfile. 04 01 * * * (cd $HOME/REQS_sections/Logs; mv -f Section.log.0 Section.log.1) 05 01 * * * (cd $HOME/REQS_sections/Logs; mv -f Section.log Section.log.0) # Stop QDDS once a day # --------------------- #34 08 * * * $HOME/QDDS/stop_QDDS > /dev/null 2>&1 # # Monitor QDM network output once a day # --------------------- 33 08 * * * $HOME/QDM/monitorQDM.pl > /dev/null 2>&1 # # Email QDDS resend report once a week. # ------------------------------------- #33 09 * * 3 $HOME/QDDS/0_check_resend.email > /dev/null 2>&1 # # Check that QDDS and QDM are running # ----------------------------------- #00,05,10,15,20,25,30,35,40,45,50,55 * * * * $HOME/eqnews/bin/CheckQDDS_QDM_Eqnews.pl > /dev/null 2>&1 #33 23 * * * $HOME/eqnews/bin/CheckQDDS_QDM_Eqnews.pl -p > /dev/null 2>&1 0 0 * * 1 (cd $HOME/QDDS; mv -f QDDS.log.0 QDDS.log.1; mv -f QDDS.log QDDS.log.0) 0 0 * * 1 (cd $HOME/QDM; mv -f QDM.log.0 QDM.log.1; mv -f QDM.log QDM.log.0) 0 0 * * 1 (cd $HOME/eqnews; mv -f Eqnews.log.0 Eqnews.log.1; mv -f Eqnews.log Eqnews.log.0) 0 0 * * 1 (cd $HOME/eqnews; mv -f eqnews.log.0 eqnews.log.1; mv -f eqnews.log eqnews.log.0) # Run process that checks all earthquakes listed in # /webd1/ncweb/eqinthenews/eqinthenews.list or in /home/QDM/catalog/merge.nts # and copies Simpson maps for those that occurred within last 6 days. # Run hourly on the half hour. #30 * * * * $HOME/eqnews/bin/MapCopy.pl > /dev/null # # Make a daily backup of this file # -------------------------------- 30 01 * * * (cd $HOME; mv -f crontab.backup.0 crontab.backup.1) 31 01 * * * (cd $HOME; mv -f crontab.backup crontab.backup.0) 32 01 * * * /usr/bin/crontab -l > $HOME/crontab.backup # Once a minute, check if new Cap Messages exist and, if so, # move to web directory and generate RSS feeds # disabled by David O on 9/11/2006 # -------------------------------------------------- #* * * * * $HOME/QWCapOutClient/gen_rss.csh > /dev/null 2>&1 # clean up CAP messages and log files once a day # -------------------------------------------------- #0 1 * * * find $HOME/QWCapOutClient/log -mtime +30 -exec /bin/rm {} \; #0 2 * * * find $HOME/QWCapOutClient/capMessages_sent -mtime +7 -exec /bin/rm {} \; #0 3 * * * find /home/html/earthquake/eqcenter/recenteqsww/catalogs/cap -name USGS-earthquakes\* -mtime +7 -exec /bin/rm {} \; # Check that EIDS2CAP message program is running and restart if not. # -------------------------------------------------------- #18,38,58 * * * * cd $HOME/QWCapOutClient/; $HOME/QWCapOutClient/runClient > /dev/null 2>&1 # Create ANSS catlist catalog once a day 15 minutes past GMT midnight for KML generation # -------------------------------------------------------- # following line is for PST 15 16 * * * /bin/csh /home/quake/ANSS_KML/get_ANSS.csh > /dev/null 2>&1 # following line is for PDT #15 17 * * * /bin/csh /home/quake/ANSS_KML/get_ANSS.csh > /dev/null 2>&1 # 05/04/10 -- EMM: LossPAGER indexer * */12 * * * /home/www/apps/LossPager/indexer/index_event.php --reindex >> /home/www/data/LossPager/logs/losspager.cron.log 2>&1 # 10/01/2008 -- EMM: Index the DYFI products */2 * * * * /bin/bash /home/www/apps/DYFI/lib/indexer/dyfi.main.sh >> /home/www/data/DYFI/logs/dyfi.error.log 2>&1 # Create historic earthquake KML file served from earthquake.usgs.gov # -------------------------------------------------------- 0 2 * * * /home/quake/REQS_Google/anss2kml_combinedfeed.pl > /dev/null 2>&1 # Create kml file for Google to integrate historic earthquake catalog in Google Earth # -------------------------------------------------------- 30 2 * * * /home/quake/REQS_Google/anss2google_auto.pl > /dev/null 2>&1 # rsync to ehpbackup.cr.usgs.gov #*/15 * * * * /chroot/scripts/sync-ehpbackup.sh > /dev/null 2>&1 # rsync to ehp1.cr.usgs.gov #*/15 * * * * /chroot/scripts/sync-ehp1_www.sh > /dev/null 2>&1 # rsync to ehp2.wr.usgs.gov #*/15 * * * * /chroot/scripts/sync-ehp2_www.sh > /dev/null 2>&1 # rsync to ehp3.gps.caltech.edu #*/15 * * * * /chroot/scripts/sync-ehp3_www.sh > /dev/null 2>&1 # rsync to ehp4.cr.usgs.gov #*/15 * * * * /chroot/scripts/sync-ehp4_www.sh > /dev/null 2>&1 # sync install depot #*/5 * * * * /chroot/tarfiles/synchronize/sync_ehp.sh > /dev/null 2>&1 & ################################################################################ # Clean up stale images in eqcenter sub directories. JHL 27 Aug. 2009 15 1 * * * find /home/www/vhosts/earthquake/htdocs/eqcenter/eqwavesnc/all -name nc\* -mtime +7 -exec rm {} \; 15 1 * * * find /home/www/vhosts/earthquake/htdocs/eqcenter/eqwavesnc/big -name nc\* -mtime +200 -exec rm {} \; 15 1 * * * find /home/www/vhosts/earthquake/htdocs/eqcenter/eqwavesnc/shake -name nc\* -mtime +200 -exec rm {} \; 15 1 * * * find /home/www/vhosts/earthquake/htdocs/eqcenter/helicorders/nca -name nc\* -mtime +12 -exec rm {} \; 15 1 * * * find /home/www/vhosts/earthquake/htdocs/eqcenter/helicorders/longvalley -name nc\* -mtime +12 -exec rm {} \; 15 1 * * * find /home/www/vhosts/earthquake/htdocs/eqcenter/helicorders/crest -name nc\* -mtime +12 -exec rm {} \; 15 1 * * * find /home/www/vhosts/earthquake/htdocs/eqcenter/spectrograms/nca -name nc\*.MOD\* -mtime +15 -exec rm {} \; 15 1 * * * find /home/www/vhosts/earthquake/htdocs/eqcenter/spectrograms/longvalley -name nc\*.MOD\* -mtime +15 -exec rm {} \; 15 1 * * * find /home/www/vhosts/earthquake/htdocs/eqcenter/spectrograms/longvalley2 -name nc\*.MOD\* -mtime +15 -exec rm {} \; ################################################################################ # logs output to /home/quake/PD/log/cron_YYYYMMDD.log */5 * * * * /home/quake/PD/bin/cron.sh >/dev/null 2>&1 # 09/17/2008 -- EMM: 7 Day EQ Animations # 10/16/2008 -- EMM: Updated for the SVN paths. # 03/23/2010 -- SAS: Merged scripts into one script (anim_maps) 4 * * * * /bin/bash /home/www/apps/REQS_Animations/lib/anim_maps >> /home/www/apps/REQS_Animations/lib/anim_maps.log 2>&1 14 7 * * 3 /bin/bash /home/www/apps/REQS_Animations/lib/cleanup >> /home/www/apps/REQS_Animations/lib/cleanup.log 2>&1 # [JF] make sure realtime data apps are running */5 * * * * cd /home/www/apps/EIDSClient && (echo "# `date`"; ./cube_init.sh start; echo) >>/home/www/data/EIDSClient/croninit.log 2>&1 & */5 * * * * cd /home/www/apps/QDM && (echo "# `date`"; ./qdm_init.sh start; echo) >>/home/www/data/QDM/croninit.log 2>&1 & */5 * * * * cd /home/www/apps/EIDSServer && (echo "# `date`"; ./server_init.sh start; echo) >>/home/www/data/EIDSServer/croninit.log 2>&1 & */5 * * * * cd /home/www/apps/ProductClient && (echo "# `date`"; ./client_init.sh start; echo) >>/home/www/apps/ProductClient/croninit.log 2>&1 &