Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ssh adean@dev-1-web1
- adean@dev-1-web1's password:
- Last login: Fri May 20 13:16:05 2011 from 10.0.7.148
- -bash-3.2$ sudo su - wxweb
- [sudo] password for adean:
- [wxweb@dev-1-web1 ~]$ crontab -l
- #########################################################
- ## Don't change this through crontab -e, please make the
- ## changes to /opt/software/wxweb/current/config/cronfile
- ## and then run crontab /opt/software/wxweb/current/config/cronfile
- ## to enter your changes into the crontab
- #########################################################
- WXWEB=/opt/software/wxweb
- PATH=/opt/software/wxweb/opt/bin:/bin:/usr/bin
- LD_LIBRARY_PATH=/opt/software/wxweb/opt/oracle_instantclient:/opt/software/wxweb/opt/lib
- RAILS_ENV=ipsm_dev
- MAILTO=webdev@meteostar.com
- # Purge the database of old data every 15 minutes
- */15 * * * * cd $WXWEB/current; script/run_once.sh $WXWEB/opt/bin/rake --trace db:purge:all >> $WXWEB/current/log/purge.log
- # Update stats every hour
- 30 * * * * /usr/bin/perl /opt/software/wxweb/opt/awstats/wwwroot/cgi-bin/awstats.pl update >> $WXWEB/current/log/awstats.log
- # Save user_data off to disk every 6 hours
- 20 */6 * * * cd $WXWEB/current; $WXWEB/opt/bin/rake db:user_data:dump > /dev/null
- # Deactivate expired users every night
- 10 8 * * * cd $WXWEB/current; $WXWEB/opt/bin/rake db:periodic:deactivate_expired_accounts > /dev/null
- # Rotate logs every night (clock is zulu time!)
- 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
- # check for geoserver coverage updates
- * * * * * cd $WXWEB/current; $WXWEB/opt/bin/rake -s geoserver:update_coverages
- # report gmetrics to ganglia
- * * * * * cd $WXWEB/current; ruby script/ganglia_gmetrics.rb
Add Comment
Please, Sign In to add comment