ioos / comt_catalog

THREDDS catalogs for comt_catalog.sura.org:/var/www/thredds_instance/content/thredds
http://comt.sura.org/thredds
1 stars 5 forks source link

Set up thredds to regenerate catalog and reload thredds every hour #26

Closed rsignell-usgs closed 10 years ago

rsignell-usgs commented 10 years ago

We want the catalog to update every hour using content driven by the google doc.

rsignell-usgs commented 10 years ago

I've set crontabs for user root, tomcat and testbed.

[testbed@testbed2 ~]$ sudo crontab -u root -l
30 3 * * * /etc/init.d/tomcat_thredds restart

[testbed@testbed2 ~]$ sudo crontab -u tomcat -l
0 * * * * /bin/touch /var/www/thredds_instance/webapps/thredds/WEB-INF/web.xml

[testbed@testbed2 ~]$ crontab -l
PATH="/home/testbed/anaconda/bin:/usr/local/bin:$PATH"
58 * * * * cd /home/testbed/comt_catalog/code;python buildcatalog_comt1_archive.py
59 * * * * cd /home/testbed/comt_catalog/code;python buildcatalog_comt2_current.py

@brianmckenna, hopefully this will work.