Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The frequency the cron job runs depend on your needs and your hardware. The more often you run the cron job the shorter is the delay between the moment a DOI is marked for registration in DSpace and the moment it is registered online. If you have a lot of submissions and want the DOIs to be available really quickly, you probably should run the cron job every fifteen minutes. If there are just one or two submissions per day it should be enough to let the cron job run twice per day.

To set up the cron job, you just need to run the following command as the dspace UNIX user:

Code Block
languagebash
crontab -e

The following line tells cron to run the necessary commands twice a day, at 1am and 1pm. Please notice that the line starting with the numbers is one line, even it it should be shown as multiple lines in your browser.

Code Block
languagebash
# Send information about new and changed DOIs to the DOI registration agency:
0 1,13 * * *  [dspace]/bin/dspace doi-organiser -u -q ; [dspace]/bin/dspace doi-organiser -s -q ; [dspace]/bin/dspace doi-organiser -r -q ; [dspace]/bin/dspace doi-organiser -d -q

Limitations of DOI support

...