|
ExampleCronJob
Example cron job used to sync with other servers in the network
cron Example Cron JobThe following cron job assumes that:
The cron job: # Sync Users and Torrents Every 5 Minutes 0-59/5 * * * * RAILS_ENV=production /usr/bin/ruby /u/apps/hydra/current/script/runner -e production 'Sync.sync_every_five' > /dev/null # General Daily Cron - Sync transfer stats @ 1am 0 1 * * * RAILS_ENV=production /usr/bin/ruby /u/apps/hydra/current/script/runner -e production 'Sync.sync_daily' > /dev/null See Here for a crontab tutorial. Normally the workflow is just: crontab -e # Opens up your default text editor -- paste in your cron jobs # Save the file and exit, and your new cron jobs should now be installed # View your cron list with: crontab -l |