Guest User

Untitled

a guest
Dec 7th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. $ ssh adean@dev-1-web1
  2. adean@dev-1-web1's password:
  3. Last login: Fri May 20 13:16:05 2011 from 10.0.7.148
  4. -bash-3.2$ sudo su - wxweb
  5. [sudo] password for adean:
  6. [wxweb@dev-1-web1 ~]$ crontab -l
  7. #########################################################
  8. ## Don't change this through crontab -e, please make the
  9. ## changes to /opt/software/wxweb/current/config/cronfile
  10. ## and then run crontab /opt/software/wxweb/current/config/cronfile
  11. ## to enter your changes into the crontab
  12. #########################################################
  13.  
  14. WXWEB=/opt/software/wxweb
  15. PATH=/opt/software/wxweb/opt/bin:/bin:/usr/bin
  16. LD_LIBRARY_PATH=/opt/software/wxweb/opt/oracle_instantclient:/opt/software/wxweb/opt/lib
  17. RAILS_ENV=ipsm_dev
  18. MAILTO=webdev@meteostar.com
  19.  
  20. # Purge the database of old data every 15 minutes
  21. */15 * * * * cd $WXWEB/current; script/run_once.sh $WXWEB/opt/bin/rake --trace db:purge:all >> $WXWEB/current/log/purge.log
  22.  
  23. # Update stats every hour
  24. 30 * * * * /usr/bin/perl /opt/software/wxweb/opt/awstats/wwwroot/cgi-bin/awstats.pl update >> $WXWEB/current/log/awstats.log
  25.  
  26. # Save user_data off to disk every 6 hours
  27. 20 */6 * * * cd $WXWEB/current; $WXWEB/opt/bin/rake db:user_data:dump > /dev/null
  28.  
  29. # Deactivate expired users every night
  30. 10 8 * * * cd $WXWEB/current; $WXWEB/opt/bin/rake db:periodic:deactivate_expired_accounts > /dev/null
  31.  
  32. # Rotate logs every night (clock is zulu time!)
  33. 10 7 * * * /usr/sbin/logrotate -s /opt/software/wxweb/shared/system/logrotate.state /opt/software/wxweb/current/config/logrotate.conf >> $WXWEB/current/log/logrotate.log
  34.  
  35. # check for geoserver coverage updates
  36. * * * * * cd $WXWEB/current; $WXWEB/opt/bin/rake -s geoserver:update_coverages
  37.  
  38. # report gmetrics to ganglia
  39. * * * * * cd $WXWEB/current; ruby script/ganglia_gmetrics.rb
Add Comment
Please, Sign In to add comment