Bug 9988: Refactor the cron script
[koha.git] / misc / cronjobs / crontab.example
index 5ef68cb..e1b4c1f 100644 (file)
@@ -45,15 +45,21 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs
 # SCHEDULED JOBS:
 # m h  dom mon dow   user command
 
-# OVERDUE NOTICES
-0    1 * * *  __KOHA_USER__  $KOHA_CRON_PATH/overdue_notices.pl -t
 
-# FINES
-5    1 * * *  __KOHA_USER__  $KOHA_CRON_PATH/fines.pl
+# AUTOMATIC RENEWAL + FINES + OVERDUE NOTICES
+# Sequence is important - renew what can be renewed, charge fines for the rest, print fine amount into overdue notices
+5    1 * * *  __KOHA_USER__ $KOHA_CRON_PATH/automatic_renewals.pl; $KOHA_CRON_PATH/fines.pl; $KOHA_CRON_PATH/overdue_notices.pl -t
 
 # ADVANCE NOTICES
 10   1 * * *  __KOHA_USER__  $KOHA_CRON_PATH/advance_notices.pl -c
 
+# MEMBERSHIP_EXPIRY NOTICES
+
+15   1 * * *  __KOHA_USER__  $KOHA_CRON_PATH/membership_expiry.pl -c
+
+# SERIALS UPDATE
+18   1 * * * __KOHA_USER__  $KOHA_CRON_PATH/serialsUpdate.pl -c
+
 # PROCESS LONG OVERDUES
 # updates item status from available to longoverdue for items long overdue
 # 19 1 * * *  __KOHA_USER__  $KOHA_CRON_PATH/longoverdue.pl --lost 90=1 --confirm
@@ -86,5 +92,5 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs
 # delete old purchase suggestions weekly. Replace XX with a number to define the age of suggestions to delete.
 @weekly        __KOHA_USER__  $KOHA_CRON_PATH/purge_suggestions.pl --days XX > /dev/null 2>&1
 
-# every day at 3AM renew all issues scheduled for automatic renewal
-0 3 * * *  __KOHA_USER__ $KOHA_CRON_PATH/automatic_renewals.pl
+# share_usage_with_koha_community.pl every months
+0 0 1 * *  __KOHA_USER__ $KOHA_CRON_PATH/share_usage_with_koha_community.pl