From: Andy Witter Date: Thu, 5 Jan 2017 22:42:33 +0000 (-0500) Subject: Update crontabs for utility server X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f13bfe546fb7a590bf460800f4a4b37a139ce09e;p=contrib%2Fpines%2Fgenasys.git Update crontabs for utility server --- diff --git a/templates/utility/opensrf-crontab b/templates/utility/opensrf-crontab index 2739a2c..6109c31 100644 --- a/templates/utility/opensrf-crontab +++ b/templates/utility/opensrf-crontab @@ -1,36 +1,39 @@ -# m h dom mon dow command -# Run the hold targeter -0,15,30,45 * * * * . /etc/profile && /openils/bin/hold_targeter.pl /openils/conf/opensrf_core.xml - -# Run the reshelving completer -59 3 * * * . /etc/profile && /openils/bin/reshelving_complete.srfsh - -# Run the hold thawer -5 0 * * * . /etc/profile && /openils/bin/thaw_expired_frozen_holds.srfsh - -# Generate fines -30 0 * * * . /etc/profile && /openils/bin/fine_generator.pl /openils/conf/opensrf_core.xml /tmp/generate_fines-LOCK - -# Run the hard due date updater -2 3 * * * . /etc/profile && /openils/bin/update_hard_due_dates.srfsh - -# Nightly action/trigger passive hook event generator -0 4 * * * . /etc/profile && cd /openils/bin && /usr/bin/perl ./action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --run-pending - - -# Run pending A/T events. -15,45 * * * * . /etc/profile && cd /openils/bin && /usr/bin/perl ./action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --run-pending -## Hourly -0 * * * * . /etc/profile && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --granularity hourly --run-pending -## Daily -5 3 * * * . /etc/profile && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --granularity daily --run-pending -## Hold Emails -20,55 * * * * . /etc/profile && cd /openils/bin && /usr/bin/perl ./action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --run-pending --granularity Holds --granularity-only - - -# Truncate the srfsh.log -40 23 * * * echo > /openils/var/log/srfsh.log - +## m h dom mon dow command +#FTP_PASSIVE=1 +## Run the hold targeter +#45 22 * * * . /etc/profile && /openils/bin/hold_targeter.pl /openils/conf/opensrf_core.xml +# +## Run the reshelving completer +#59 3 * * * . /etc/profile && /openils/bin/reshelving_complete.srfsh +# +## Run the hold thawer +#5 0 * * * . /etc/profile && /openils/bin/thaw_expired_frozen_holds.srfsh +# +## Generate fines +#30 0 * * * . /etc/profile && /openils/bin/fine_generator.pl /openils/conf/opensrf_core.xml /tmp/generate_fines-LOCK +# +## Run the hard due date updater +#2 3 * * * . /etc/profile && /openils/bin/update_hard_due_dates.srfsh +# +## Age juveniles to adults at 18 years old +#45 1 * * * . /etc/profile && /openils/bin/juv_to_adult.srfsh +# +## Nightly action/trigger passive hook event generator +#0 4 * * * . /etc/profile && cd /openils/bin && /usr/bin/perl ./action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --run-pending +# +# +## Run pending A/T events. +#15,45 * * * * . /etc/profile && cd /openils/bin && /usr/bin/perl ./action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --run-pending +### Hourly +#0 * * * * . /etc/profile && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --granularity hourly --run-pending +### Daily +#5 3 * * * . /etc/profile && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --granularity daily --run-pending +### Hold Emails +#20,55 * * * * . /etc/profile && cd /openils/bin && /usr/bin/perl ./action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --run-pending --granularity Holds --granularity-only +# +# +## Truncate the srfsh.log +#40 23 * * * echo > /openils/var/log/srfsh.log ### Pines Configs ### Uncomment below if running Pines. @@ -43,3 +46,40 @@ ### create the list of blocked patrons for offline use #30 6 * * * cd /home/opensrf/eg && ./gen_blocked_list.sh ###PINES ONLY + +### Purge pending users +#15 4 * * * . /etc/profile && /openils/bin/purge_pending_users.srfsh + +### Purge fulfilled holds +#0 22 * * * . /etc/profile && /openils/bin/purge_holds.srfsh + +### Purge completed circulations +#0 23 * * * . /etc/profile && /openils/bin/purge_circulations.srfsh + +### LongOverdue Processing +#0 1 * * * . /etc/profile && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --run-pending --granularity longoverdue --granularity-only +# +### LongOverdue Notices +#30 3 * * * . /etc/profile && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --run-pending --granularity longoverdue-notices --granularity-only +### Preminders +#0 3 * * * . /etc/profile && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --run-pending --granularity preminders --granularity-only +### Overdue Notices +#0 4 * * * . /etc/profile && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --run-pending --granularity overdue-notices --granularity-only +### Account Notices - New users, account expiration warnings +#30 4 * * * . /etc/profile && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --run-pending --granularity account-notices --granularity-only +### Holds Cancelled +#0 5 * * * . /etc/profile && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --run-pending --granularity hold-cancelled --granularity-only +### Lost Notices +#10 * * * * . /etc/profile && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --process-hooks --run-pending --granularity lost-notices --granularity-only +### EDI functions +#0,30 * * * * cd /openils/bin && /usr/bin/perl ./edi_pusher.pl > /dev/null +#0 1 * * * echo `date` >> /home/opensrf/fetcher.log && cd /openils/bin && /usr/bin/perl ./edi_fetcher.pl > /home/opensrf/fetcher.log +# +### link authority records with new bibs +#0 2 * * * . /etc/profile && /openils/bin/authority_control_fields.pl --days_back=1 +# +### run intrapines reports +#0 0 1 * * . /etc/profile && cd /home/opensrf/intrapines-loans && ./intrapines-loans-reports.sh -s $(date -d "-1 month -$(($(date +\%d)-1)) days" +\%F) -e $(date -d "-$(date +\%d) days" +\%F) +# +### find non-acq copies attached to acq bibs +#0 20 1,14 * * . /etc/profile && cd /home/opensrf/non-acq-copies && ./find-non-acq-copies.sh